Skip to content

Commit

Permalink
ci(workflow): use own GH_TOKEN for semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Mar 6, 2019
1 parent 0430589 commit 659da65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ action "npx semantic-release" {
uses = "docker://timbru31/node-alpine-git"
runs = "npx"
args = "semantic-release"
secrets = ["GITHUB_TOKEN"]
secrets = ["GH_TOKEN"] # temporary workaround until semantic-release works in action environment
}
1 change: 1 addition & 0 deletions test/push-master-setup/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const nock = require('nock')
const tap = require('tap')

// SETUP
fs.promises.readFile = async () => fs.readFileSync('tweets/README.md')
process.env.GITHUB_EVENT_NAME = 'push'
process.env.GITHUB_TOKEN = 'secret123'
process.env.GITHUB_EVENT_PATH = require.resolve('./event.json')
Expand Down

0 comments on commit 659da65

Please sign in to comment.