Skip to content

Commit

Permalink
ensuring both tag and branch, updated env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Samkeer1 committed Apr 19, 2024
1 parent 317c0bb commit 68ed4f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: Deploy
on:
push:
tags: [ 'v*.*.*' ]
branches: master

jobs:
test:
uses: ./.github/workflows/test.yml
deploy:
needs: [test]
if: ${{ github.ref_name == 'master' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -20,5 +20,5 @@ jobs:
- run: npm run build
- run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_GITHUB }}

0 comments on commit 68ed4f5

Please sign in to comment.