Skip to content

Commit

Permalink
update package publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JackNoordhuis committed Sep 12, 2023
1 parent bf9216b commit 33fa17c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/package-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
node-version: [18]

env:
tag: ${GITHUB_REF##*/}
tag: ${{ env.GITHUB_REF_NAME }}
is_latest: ${{ github.ref == 'refs/heads/dist' }}

outputs:
Expand All @@ -39,11 +39,11 @@ jobs:
run: |
npm publish --access public --tag ${{ env.tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Publish latest to npm registry
if: ${{ env.is_latest }}
run: |
npm publish --access public --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 33fa17c

Please sign in to comment.