File tree Expand file tree Collapse file tree 4 files changed +27
-36
lines changed Expand file tree Collapse file tree 4 files changed +27
-36
lines changed Original file line number Diff line number Diff line change 11
11
jobs :
12
12
ci :
13
13
runs-on : ubuntu-latest
14
+
15
+ if : ${{ !github.event.pull_request.draft }}
16
+
14
17
steps :
15
18
- name : Checkout repository
16
19
uses : actions/checkout@v4
Original file line number Diff line number Diff line change 5
5
types : [created]
6
6
7
7
jobs :
8
- build :
9
- runs-on : ubuntu-latest
10
- steps :
11
- - uses : actions/checkout@v4
12
- - uses : actions/setup-node@v4
13
- with :
14
- node-version-file : ' .nvmrc'
15
- - run : npm ci
16
- - run : npm test
8
+ build-and-publish :
9
+ name : Build and Publish to NPM Registry
17
10
18
- publish-gpr :
19
- needs : build
20
11
runs-on : ubuntu-latest
21
- permissions :
22
- packages : write
23
- contents : read
12
+
24
13
steps :
25
- - uses : actions/checkout@v4
26
- - uses : actions/setup-node@v4
14
+ - name : Checkout repository
15
+ uses : actions/checkout@v4
16
+
17
+ - name : Use Node.js
18
+ uses : actions/setup-node@v4
27
19
with :
28
20
node-version-file : ' .nvmrc'
29
- registry-url : https://npm.pkg.github.com/
30
- - run : npm ci
31
- - run : npm run build-lib
32
- - run : npm publish
33
- env :
34
- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
- publish-npm :
36
- name : Publish to NPM Registry
37
- runs-on : ubuntu-latest
38
- steps :
39
- - uses : actions/checkout@v4
40
- - uses : actions/setup-node@v4
41
- with :
42
- node-version : 16
21
+ cache : ' npm'
43
22
registry-url : ' https://registry.npmjs.org/'
44
- - run : npm ci
45
- - run : npm run build-lib
46
- - run : npm publish --access public
23
+
24
+ - name : Install dependencies
25
+ run : npm ci
26
+
27
+ - name : Execute test cases
28
+ run : npm test
29
+
30
+ - name : Build Lib
31
+ run : npm run build-lib
32
+
33
+ - name : Publish to NPM Registry
34
+ run : npm publish --access public
47
35
env :
48
36
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @devtron-labs/devtron-fe-common-lib" ,
3
- "version" : " 0.0.82-beta-13 " ,
3
+ "version" : " 0.0.82-beta-14 " ,
4
4
"description" : " Supporting common component library" ,
5
5
"type" : " module" ,
6
6
"main" : " dist/index.js" ,
You can’t perform that action at this time.
0 commit comments