From c34b29975626837bd883c778f0615cd87684648c Mon Sep 17 00:00:00 2001 From: Austin Cawley-Edwards Date: Wed, 24 Feb 2021 13:23:18 -0500 Subject: [PATCH] ci: correctly template github event in `if` condition for release (#283) * ci: correctly template github event in if condition for release * add comment for NPM token name Co-authored-by: Keith Cirkel --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e865dc..bfaddcd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - uses: coverallsapp/github-action@v1.0.1 with: github-token: ${{ secrets.github_token }} - + publish-npm: needs: build @@ -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}}