Skip to content

Commit 44c365a

Browse files
authored
ci: publish to npm from CI with OIDC trusted publishing and bump np (#361)
1 parent 9d56900 commit 44c365a

3 files changed

Lines changed: 346 additions & 329 deletions

File tree

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
npm:
13+
name: publish-to-npm
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
contents: read
18+
id-token: write
19+
20+
steps:
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
22+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
23+
with:
24+
node-version: 24.x
25+
registry-url: 'https://registry.npmjs.org'
26+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
27+
- run: npm install -g npm@11.17.0
28+
- run: bun install --frozen-lockfile
29+
- run: bun run build
30+
- name: Publish to npm
31+
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)