Skip to content

Commit b1d7838

Browse files
Merge branch 'main' into v2
2 parents adfeba2 + 0d7f05e commit b1d7838

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow runs tests using node and then publishes a package to GitHub Packages
2+
# whenever a release is created, and it's tag starts with "2"
3+
# The pipeline is aimed on "v2" branch
4+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
5+
6+
name: Node.js Package v2
7+
8+
on:
9+
release:
10+
types: [published]
11+
tags:
12+
- '2*'
13+
14+
jobs:
15+
publish-npm:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
ref: 'v2'
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
registry-url: https://registry.npmjs.org/
25+
- run: npm ci
26+
- run: npm run build
27+
- run: npm publish --access public
28+
env:
29+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)