File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
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}}
You can’t perform that action at this time.
0 commit comments