File tree Expand file tree Collapse file tree 3 files changed +117
-93
lines changed Expand file tree Collapse file tree 3 files changed +117
-93
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://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
+
4
+ name : Publish to NPM
5
+ on :
6
+ release :
7
+ types : [created]
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v2
14
+ - name : Setup Node
15
+ uses : actions/setup-node@v2
16
+ with :
17
+ node-version : 16
18
+ registry-url : ' https://registry.npmjs.org'
19
+ - name : Install dependencies and build 🔧
20
+ run : npm ci && npm run test
21
+ - name : Publish package on NPM 📦
22
+ run : npm publish
23
+ env :
24
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments