Skip to content

Commit 67dda6f

Browse files
authored
Create an npm release on release
1 parent aeacb4e commit 67dda6f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3+
4+
name: Node.js Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
permissions:
11+
id-token: write
12+
contents: read
13+
14+
jobs:
15+
publish-npm:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
registry-url: https://registry.npmjs.org/
23+
- name: Update npm
24+
run: npm install -g npm@latest
25+
- run: npm publish

0 commit comments

Comments
 (0)