File tree Expand file tree Collapse file tree 4 files changed +1794
-30
lines changed
Expand file tree Collapse file tree 4 files changed +1794
-30
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: Build pull request
33on :
44 pull_request :
55 branches : [ main ]
6+ push :
7+ branches : [ main ]
68
79jobs :
810 build :
1921 - name : Setting up ${{ matrix.node-version }}
2022 uses : actions/setup-node@v3
2123 with :
24+ cache : ' npm'
2225 node-version : ${{ matrix.node-version }}
2326
2427 - name : Install dependencies
3235
3336 - name : Test
3437 run : npm test
38+
39+ - name : Release preview
40+ run : npx auto shipit --dry-run
Original file line number Diff line number Diff line change 1- name : Build pull request
1+ name : Publish
22
33on :
4- pull_request :
5- branches : [ main ]
4+ workflow_dispatch :
65
76jobs :
87 build :
98
109 runs-on : ubuntu-latest
1110
12- strategy :
13- matrix :
14- node-version : [18.x]
15-
1611 steps :
1712 - uses : actions/checkout@v3
1813
19- - name : Setting up ${{ matrix.node-version }}
14+ - name : Setting up Node.js
2015 uses : actions/setup-node@v3
2116 with :
22- node-version : ${{ matrix.node-version }}
17+ cache : ' npm'
18+ node-version : 18
2319
2420 - name : Install dependencies
2521 run : npm ci
2622
2723 - name : Build
2824 run : npm run build:prod
2925
26+ - name : Publish
27+ run : npm publish
28+ env :
29+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
You can’t perform that action at this time.
0 commit comments