Skip to content

Commit

Permalink
Add NPM publish step to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kj4ezj committed Aug 1, 2024
1 parent c5d491c commit be07878
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

strategy:
matrix:
Expand Down Expand Up @@ -41,3 +44,9 @@ jobs:
with:
name: kj4ezj-is-${{ matrix.node-version }}
path: kj4ezj-is-*.tgz

- name: Publish to NPM
run: npm publish --provenance --access public
if: startsWith(github.ref, 'refs/tags/')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_KEY }}

0 comments on commit be07878

Please sign in to comment.