From 68ed4f572b4624911cbb6feecc442e08ec521f57 Mon Sep 17 00:00:00 2001 From: Samuel Aaron Katz Keer Date: Fri, 19 Apr 2024 15:52:57 -0500 Subject: [PATCH] ensuring both tag and branch, updated env var name --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6c4525c2..3def00fa 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 @@ -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 }} \ No newline at end of file