This repository was archived by the owner on Nov 21, 2023. It is now read-only.
File tree 1 file changed +41
-0
lines changed
1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI/CD pipeline
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ lint-test-audit :
10
+ runs-on : ubuntu-latest
11
+
12
+ strategy :
13
+ matrix :
14
+ node-version : [16.x]
15
+
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - name : Use Node.js ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+ - run : npm install
23
+
24
+ publish :
25
+ runs-on : ubuntu-latest
26
+
27
+ steps :
28
+ - uses : actions/checkout@v2
29
+ - name : Use Node.js ${{ matrix.node-version }}
30
+ uses : actions/setup-node@v1
31
+ with :
32
+ node-version : ${{ matrix.node-version }}
33
+ - run : npm ci
34
+ - name : Set package registry
35
+ run : npm config set registry https://npm.pkg.github.com
36
+ - name : Github package registry authentication
37
+ run : npm set //npm.pkg.github.com/:_authToken ${{ secrets.GPR_TOKEN }}
38
+ - name : Npm registry authentication
39
+ run : npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
40
+ - name : Publish package to Github and Npm package registries
41
+ run : npm publish
You can’t perform that action at this time.
0 commit comments