Skip to content

Commit

Permalink
Update npm-test-publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
riyadhalnur authored Nov 12, 2023
1 parent f34d4c0 commit 094ef9a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/npm-test-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
- run: npm test

publish-npm:
if: github.event == 'release'
if: ${{ github.event_name == 'release' }}
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -43,7 +44,8 @@ jobs:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish-gpr:
if: github.event == 'release'
if: ${{ github.event_name == 'release' }}
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 094ef9a

Please sign in to comment.