Skip to content

Commit

Permalink
ci: correctly template github event in if condition for release (#283)
Browse files Browse the repository at this point in the history
* ci: correctly template github event in if condition for release
* add comment for NPM token name

Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
  • Loading branch information
austince and keithamus committed Feb 24, 2021
1 parent 4a196eb commit c34b299
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: coverallsapp/github-action@v1.0.1
with:
github-token: ${{ secrets.github_token }}


publish-npm:
needs: build
Expand All @@ -40,7 +40,7 @@ jobs:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm run release
if: github.event == 'push'
if: ${{ github.event == 'push' }}
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}} # f674......69f0
GITHUB_TOKEN: ${{secrets.github_token}}

0 comments on commit c34b299

Please sign in to comment.