Skip to content

Commit 2d44bc5

Browse files
author
Sam Painter
committed
ci: add npm publish workflow on release
1 parent fd5e547 commit 2d44bc5

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/publish.yml

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

0 commit comments

Comments
 (0)