Skip to content

Commit

Permalink
Add workflow for npm package publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sankichi92 committed Dec 23, 2024
1 parent 96c85d3 commit bfc87ef
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: npm

on:
release:
types:
- created

jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/[email protected]

- uses: pnpm/[email protected]

- uses: actions/[email protected]
with:
node-version-file: package.json
registry-url: https://registry.npmjs.org

- run: pnpm install

- run: pnpm build

- run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true

0 comments on commit bfc87ef

Please sign in to comment.