File tree Expand file tree Collapse file tree 3 files changed +29
-40
lines changed
Expand file tree Collapse file tree 3 files changed +29
-40
lines changed Original file line number Diff line number Diff line change 1- name : Test
1+ name : CI
22
33on :
44 push :
99
1010env :
1111 FORCE_COLOR : 2
12- NODE_LINT : 18
12+ NODE : 18
1313
1414jobs :
1515 lint :
2323
2424 - uses : actions/setup-node@v3
2525 with :
26- node-version : ' ${{ env.NODE_LINT }}'
26+ node-version : ' ${{ env.NODE }}'
2727 cache : npm
2828
2929 - run : npm ci
5454 - run : npm ci
5555 - run : npm run build
5656 - run : npm test
57+
58+ release :
59+ if : github.repository == 'twbs/fantasticon'
60+ name : Release
61+ runs-on : ubuntu-latest
62+ needs : [lint, test]
63+
64+ steps :
65+ - uses : actions/checkout@v3
66+ with :
67+ fetch-depth : 0
68+ persist-credentials : false
69+ - uses : actions/setup-node@v3
70+ with :
71+ node-version : ' ${{ env.NODE }}'
72+ cache : npm
73+ - name : Install dependencies
74+ run : npm ci
75+ - name : Build
76+ run : npm run build
77+ - name : Release
78+ env :
79+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
80+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
81+ run : npx semantic-release --branches dev
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 99</blockquote >
1010
1111<p align =" center " >
12- <img src =" https://github.com/twbs/fantasticon/workflows/Test/badge.svg " alt =" Test status " >
13- <img src =" https://github.com/twbs/fantasticon/workflows/Release/badge.svg " alt =" Release status " >
12+ <img src =" https://github.com/twbs/fantasticon/actions/workflows/ci.yml/badge.svg " alt =" CI status " >
1413</p >
1514
1615### Intro
You can’t perform that action at this time.
0 commit comments