File tree Expand file tree Collapse file tree 3 files changed +20
-26
lines changed
Expand file tree Collapse file tree 3 files changed +20
-26
lines changed Original file line number Diff line number Diff line change 1212 - name : install dependencies
1313 run : npm install
1414 - name : run build
15- run : tsc && vite build
15+ run : tsc && npm run build
Original file line number Diff line number Diff line change 1414 steps :
1515 - uses : actions/checkout@v2
1616 - run : |
17- tsc && vite build
17+ tsc && npm run build
1818
1919 - uses : amondnet/vercel-action@v20 # deploy
2020 with :
Original file line number Diff line number Diff line change 1- name : Releases
1+ name : Changelog
2+
23on :
34 push :
4- branches :
5- - main
5+ branches : [ main ]
6+ pull_request :
7+ branches : ' *'
68
79jobs :
8- changelog :
10+ publish :
911 runs-on : ubuntu-latest
10-
11- steps :
12- - uses : actions/checkout@v2
13-
14- - name : conventional Changelog Action
15- id : changelog
16- 17- with :
18- github-token : ${{ secrets.CHANGELOG_RELEASE }}
19- version-file : ' ./package.json,./package-lock.json'
20-
21- - name : create release
22- uses : actions/create-release@v1
23- if : ${{ steps.changelog.outputs.skipped == 'false' }}
24- env :
25- GITHUB_TOKEN : ${{ secrets.CHANGELOG_RELEASE }}
26- with :
27- tag_name : ${{ steps.changelog.outputs.tag }}
28- release_name : ${{ steps.changelog.outputs.tag }}
29- body : ${{ steps.changelog.outputs.clean_changelog }}
12+ if : ${{ github.ref == 'refs/heads/main' }}
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Use Node.js ${{ matrix.node-version }}
16+ uses : actions/setup-node@v2
17+ with :
18+ node-version : ${{ matrix.node-version }}
19+ - run : npm ci
20+ - run : npm run semantic-release
21+ env :
22+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
23+ GITHUB_TOKEN : ${{ secrets.CHANGELOG_RELEASE }}
You can’t perform that action at this time.
0 commit comments