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 4b4f07d commit 2e49392
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/package-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ jobs:
node-version: [18]

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

outputs:
tag: ${{ env.tag }}
is_latest: ${{ env.is_latest }}

steps:
Expand All @@ -35,9 +33,9 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

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

Expand Down

0 comments on commit 2e49392

Please sign in to comment.