File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1- name : CI
1+ name : Build
22
33on : [push, pull_request]
44
Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ workflow_run :
5+ workflows : ['Build']
6+ branches : [main]
7+ types :
8+ - completed
9+
10+ jobs :
11+ on-success :
12+ runs-on : ubuntu-latest
13+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
14+
15+ strategy :
16+ matrix :
17+ node-version : [18.x]
18+
19+ steps :
20+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
21+ - name : Use Node.js ${{ matrix.node-version }}
22+ uses : actions/setup-node@v4
23+ with :
24+ node-version : ${{ matrix.node-version }}
25+ - name : yarn install, and build
26+ run : |
27+ yarn install
28+ yarn run build
29+ - uses : JS-DevTools/npm-publish@v3
30+ with :
31+ token : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments