Skip to content

Commit a0670ef

Browse files
committed
ci: add npm trusted publishing workflow
1 parent d2ee89c commit a0670ef

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
id-token: write
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
environment: npm
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: pnpm/action-setup@v4
20+
with:
21+
version: 11.9.0
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 24
25+
registry-url: https://registry.npmjs.org
26+
- run: pnpm install --frozen-lockfile
27+
- run: pnpm check
28+
- run: npm publish --access public --provenance

0 commit comments

Comments
 (0)