Skip to content

Commit 5a79763

Browse files
committed
chore: Publish in CI workflow
1 parent 6c36a8c commit 5a79763

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish Package
2+
3+
on:
4+
push:
5+
branches:
6+
- "chore/publish-ci"
7+
tags:
8+
- "v*"
9+
10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: read
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v6.0.0
19+
20+
- uses: actions/setup-node@v6.0.0
21+
with:
22+
node-version: "24"
23+
registry-url: "https://registry.npmjs.org"
24+
25+
# Ensure npm 11.5.1 or later is installed
26+
# - name: Update npm
27+
# run: npm install -g npm@latest
28+
- run: npm -v
29+
- run: npm ci
30+
- run: npm publish --dry-run

0 commit comments

Comments
 (0)