Skip to content

Commit

Permalink
Ensure publish runs on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jspc committed Nov 29, 2021
1 parent e48895c commit d05ecdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
CI: true

publish:
if:contains(github.ref, 'refs/tags')
if: contains(github.ref, 'refs/tags')
needs: build
runs-on: ubuntu-latest
steps:
Expand All @@ -33,6 +33,6 @@ jobs:
- name: Publish
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --ignore-scripts
npm publish --ignore-scripts --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "NodeJS SDK for the Anko Investor gRPC Forecasts Service",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\""
},
"repository": {
"type": "git",
Expand Down

0 comments on commit d05ecdd

Please sign in to comment.