File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 27
27
- name : ⚡ Run test
28
28
run : npm test
29
29
30
+ publish :
31
+ name : Publish
32
+ runs-on : ubuntu-latest
33
+ needs : [test]
34
+ steps :
35
+ - name : 🛑 Cancel Previous Runs
36
+
37
+
38
+ - name : ⬇️ Checkout repo
39
+ uses : actions/checkout@v3
40
+
41
+ - name : ⎔ Setup node
42
+ uses : actions/setup-node@v3
43
+ with :
44
+ node-version : 16
45
+
46
+ - name : 📥 Download deps
47
+ uses : bahmutov/npm-install@v1
48
+
49
+ - name : 📰 Publish to NPM (dry run)
50
+ run : npm run publish:abcd
51
+
30
52
deploy :
31
53
runs-on : ubuntu-latest
32
54
needs : [test]
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"test" : " npm run test --workspace=@ci-cd/test" ,
7
7
"deploy:pages" : " npm run build:abcd && npm run deploy --workspace=@ci-cd/pages" ,
8
- "build:abcd" : " npm run build --workspace=@ci-cd/abcd"
8
+ "build:abcd" : " npm run build --workspace=@ci-cd/abcd" ,
9
+ "publish:abcd" : " npm run publish:dryrun --workspace=@ci-cd/abcd"
9
10
},
10
11
"repository" : {
11
12
"type" : " git" ,
Original file line number Diff line number Diff line change 8
8
"description" : " abcd module" ,
9
9
"scripts" : {
10
10
"watch" : " parcel watch" ,
11
- "build" : " parcel build"
11
+ "build" : " parcel build" ,
12
+ "publish:dryrun" : " npm publish --dry-run"
12
13
},
13
14
"repository" : {
14
15
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments