Skip to content

Commit

Permalink
added step to publish to npm (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich authored May 4, 2024
1 parent e7d6b45 commit 38da310
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: NPM Release

on:
release:
types:
- released

env:
CI: true

jobs:
publish:
name: Build & Publish to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- name: Set version
run: npm version --no-git-tag-version ${{github.event.release.tag_name}}
- run: npm run build
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 38da310

Please sign in to comment.