Skip to content

Commit 2ba71db

Browse files
ci: init publish workflow
1 parent 9d39f1f commit 2ba71db

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# reference: https://docs.npmjs.com/trusted-publishers#for-github-actions
2+
3+
name: Publish
4+
5+
on:
6+
push:
7+
tags:
8+
- 'socket.io-parser@*'
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
id-token: write
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v6
20+
21+
- name: Use Node.js 24
22+
uses: actions/setup-node@v6
23+
with:
24+
node-version: 24
25+
registry-url: 'https://registry.npmjs.org'
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Publish package
31+
run: npm publish --tag v2-latest

0 commit comments

Comments
 (0)