Skip to content

Commit 033866f

Browse files
Create npm-publish.yml
1 parent ac4d6a2 commit 033866f

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish to npm
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
npm-publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v6
16+
- name: Use Node.js
17+
uses: actions/setup-node@v6
18+
with:
19+
registry-url: 'https://registry.npmjs.org'
20+
- run: |
21+
npm install
22+
npm publish --provenance
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)