Skip to content

Commit 45e6213

Browse files
committed
ci: add manual publish workflow
1 parent e439596 commit 45e6213

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
id-token: write
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: pnpm/action-setup@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: '24'
21+
cache: 'pnpm'
22+
registry-url: 'https://registry.npmjs.org'
23+
24+
- name: Update npm for OIDC support
25+
run: npm install -g npm@latest
26+
27+
- name: Install dependencies
28+
run: pnpm install --frozen-lockfile
29+
30+
- name: Build
31+
run: pnpm build
32+
33+
- name: Publish to npm
34+
run: npm publish --access public --provenance

0 commit comments

Comments
 (0)