Clean up commented-out code

This commit is contained in:
Olle Jonsson 2019-04-05 14:08:13 +02:00 committed by GitHub
parent f0002b6c97
commit a9ab9607e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -5,11 +5,6 @@ const fs = require('fs')
const path = require('path') const path = require('path')
const { execSync } = require('child_process') const { execSync } = require('child_process')
/* Configure git */
//fs.writeFileSync('git-credentials')
//execSync('git
const event = JSON.parse(fs.readFileSync('/github/workflow/event.json').toString()) const event = JSON.parse(fs.readFileSync('/github/workflow/event.json').toString())
let messages = event.commits.map(commit => commit.message) let messages = event.commits.map(commit => commit.message)
@ -27,8 +22,3 @@ process.stdout.write(execSync(`npm version --allow-same-version=true --git-tag-v
let newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString() let newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString()
console.log(newVersion) console.log(newVersion)
process.stdout.write(execSync(`npm publish --access=public`)) process.stdout.write(execSync(`npm publish --access=public`))
/*
process.stdout.write(execSync(`git tag -a ${newVersion} -m "Created by merge-release.\n\n##Changelog:\n${messages.join('\n')}"`))
process.stdout.write(execSync(`git push --tags`))
*/
// npm version minor && npm publish --access=public && git push --tags