File tree Expand file tree Collapse file tree 2 files changed +46
-19
lines changed
Expand file tree Collapse file tree 2 files changed +46
-19
lines changed Original file line number Diff line number Diff line change 77 workflow_dispatch :
88
99jobs :
10- build :
10+ test :
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout
1414 uses : actions/checkout@v3
15- with :
16- fetch-depth : 0
17- token : ${{ secrets.GH_ADMIN_TOKEN }}
1815
1916 - name : Set up Node.js
2017 uses : actions/setup-node@v3
2118 with :
2219 node-version : 18
23- always-auth : true
24- registry-url : https://registry.npmjs.org
2520
2621 - uses : pnpm/action-setup@v2
2722 with :
28- version : 7.12
29-
30- - name : Setup Git
31- run : |
32- git config --local user.name "Artem Zakharchenko"
33- git config --local user.email "[email protected] " 23+ version : 8.15.6
3424
3525 - name : Install dependencies
3626 run : pnpm install
3727
3828 - name : Test
3929 run : pnpm test
40-
41- - name : Release
42- if : github.event_name == 'push' && github.ref == 'refs/heads/main'
43- run : pnpm release
44- env :
45- GITHUB_TOKEN : ${{ secrets.GH_ADMIN_TOKEN }}
46- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 0 * * *'
6+ workflow_dispatch :
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v3
14+ with :
15+ fetch-depth : 0
16+ token : ${{ secrets.GH_ADMIN_TOKEN }}
17+
18+ - name : Set up Node.js
19+ uses : actions/setup-node@v3
20+ with :
21+ node-version : 18
22+ always-auth : true
23+ registry-url : https://registry.npmjs.org
24+
25+ - uses : pnpm/action-setup@v2
26+ with :
27+ version : 8.15.6
28+
29+ - name : Setup Git
30+ run : |
31+ git config --local user.name "Artem Zakharchenko"
32+ git config --local user.email "[email protected] " 33+
34+ - name : Install dependencies
35+ run : pnpm install
36+
37+ - name : Test
38+ run : pnpm test
39+
40+ - name : Release
41+ run : pnpm release
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GH_ADMIN_TOKEN }}
44+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments