File tree Expand file tree Collapse file tree 2 files changed +28
-19
lines changed Expand file tree Collapse file tree 2 files changed +28
-19
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy
2+ on :
3+ release :
4+ types : [created]
5+ jobs :
6+ lint :
7+ uses : ./.github/workflows/lint.yml
8+ publish :
9+ needs :
10+ - lint
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v3
14+ # Setup .npmrc file to publish to npm
15+ - uses : actions/setup-node@v3
16+ with :
17+ node-version : ' 16.x'
18+ registry-url : ' https://registry.npmjs.org'
19+ - run : npm ci
20+ - run : npm run package
21+ - run : cd package && npm publish
22+ env :
23+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1- name : Lint main
1+ name : Push to main
22on :
3- release :
4- types : [created]
3+ push :
4+ branches :
5+ - main
6+ - release/**
57jobs :
68 lint :
79 uses : ./.github/workflows/lint.yml
8- publish :
9- needs :
10- - lint
11- runs-on : ubuntu-latest
12- steps :
13- - uses : actions/checkout@v3
14- # Setup .npmrc file to publish to npm
15- - uses : actions/setup-node@v3
16- with :
17- node-version : ' 16.x'
18- registry-url : ' https://registry.npmjs.org'
19- - run : npm ci
20- - run : npm run package
21- - run : cd package && npm publish
22- env :
23- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments