Commit 154fe1a 1 parent 9eed1d3 commit 154fe1a Copy full SHA for 154fe1a
File tree 1 file changed +31
-0
lines changed
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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 : [workflow_dispatch, release]
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ - uses : actions/setup-node@v3
14
+ with :
15
+ node-version : 16
16
+ - run : npm ci
17
+ - run : npm test
18
+
19
+ publish-npm :
20
+ needs : build
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - uses : actions/checkout@v3
24
+ - uses : actions/setup-node@v3
25
+ with :
26
+ node-version : 16
27
+ registry-url : https://registry.npmjs.org/
28
+ - run : npm ci
29
+ - run : npm publish
30
+ env :
31
+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments