Skip to content

Commit

Permalink
Merge pull request #9 from NxtLvLSoftware/dev-to-dist
Browse files Browse the repository at this point in the history
Merge dev changes to dist
  • Loading branch information
JackNoordhuis authored Sep 12, 2023
2 parents b946f2d + fd8065c commit 5ab0189
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/package-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,17 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'

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

- name: Publish latest to npm registry
if: ${{ github.ref == 'refs/heads/dist' }}
run: |
npm publish --access public --tag latest
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 5ab0189

Please sign in to comment.