Skip to content

Commit ac5383a

Browse files
committed
Create publish.yml
1 parent 8beff36 commit ac5383a

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: NPM
2+
3+
on:
4+
push:
5+
paths:
6+
- 'package.json'
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
publish:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: '24.x'
25+
registry-url: 'https://registry.npmjs.org'
26+
- run: npm install
27+
- run: npm publish --access public

0 commit comments

Comments
 (0)