Skip to content

Commit 58e71e3

Browse files
authored
Merge pull request #16 from ipinfo/silvano/eng-445-update-release-process-for-npm
Add release workflow compatible with NPM trusted publishing
2 parents ebb2a2c + 8561921 commit 58e71e3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)