File tree Expand file tree Collapse file tree 3 files changed +33
-29
lines changed
Expand file tree Collapse file tree 3 files changed +33
-29
lines changed Original file line number Diff line number Diff line change 1+ name : Release & Publish to NPM
2+
3+ on : workflow_dispatch
4+
5+ jobs :
6+ nightly :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : Checkout Repository
10+ uses : actions/checkout@v4
11+
12+ - name : Setup
13+ uses : ./.github/actions/setup
14+
15+ - name : Initialize Git user
16+ shell : bash
17+ run : |
18+ git config user.name "github-actions"
19+ git config user.email "mwlawlor@gmail.com"
20+
21+ - name : Setup NPM registry
22+ run : |
23+ npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
24+ env :
25+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
26+
27+ - name : Run nightly release
28+ run : |
29+ yarn release:nightly --ci
30+ env :
31+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 3030 env :
3131 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3232 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
33-
34- nightly :
35- runs-on : ubuntu-latest
36- steps :
37- - name : Checkout Repository
38- uses : actions/checkout@v4
39-
40- - name : Setup
41- uses : ./.github/actions/setup
42-
43- - name : Initialize Git user
44- shell : bash
45- run : |
46- git config user.name "github-actions"
47- git config user.email "mwlawlor@gmail.com"
48-
49- - name : Setup NPM registry
50- run : |
51- npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
52- env :
53- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
54-
55- - name : Run nightly release
56- run : |
57- yarn release:nightly --ci --dry-run
58- env :
59- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 116116 "prepare" : " bob build" ,
117117 "prepublishOnly" : " bob build" ,
118118 "release" : " release-it --config ./.config/release-it.config.ts" ,
119- "release:nightly" : " release-it --config ./.config/release-it.nightly.config.ts 0.0.0-nightly. \" $(git rev-parse --short HEAD) \" --npm.tag =nightly && git restore :/ " ,
119+ "release:nightly" : " release-it --config ./.config/release-it.nightly.config.ts --preRelease =nightly" ,
120120 "start" : " yarn example start" ,
121121 "start:build" : " yarn build && yarn example build" ,
122122 "start:debug" : " yarn build && yarn example debug" ,
You can’t perform that action at this time.
0 commit comments