Skip to content

Commit 1d0cfc8

Browse files
committed
Add publish.yml
1 parent ada4ece commit 1d0cfc8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish package on NPM
2+
3+
on:
4+
push:
5+
tags:
6+
- v* # Any version tag
7+
8+
permissions:
9+
id-token: write # To publish on NPM with provenance and to federate tokens
10+
contents: read # To read the package.json file
11+
12+
jobs:
13+
# Requires an approval
14+
npm-publish:
15+
runs-on: ubuntu-latest
16+
environment: npm
17+
steps:
18+
- uses: actions/checkout@v6
19+
- uses: actions/setup-node@v6
20+
with:
21+
node-version: 24
22+
registry-url: "https://registry.npmjs.org"
23+
- run: npm install
24+
- run: npm publish

0 commit comments

Comments
 (0)