File tree Expand file tree Collapse file tree 6 files changed +28
-505
lines changed
Expand file tree Collapse file tree 6 files changed +28
-505
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Release packages (prod)
1+ name : Release packages
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Version'
8+ default : ' patch'
59 push :
610 branches :
711 - main
@@ -10,27 +14,26 @@ jobs:
1014 build :
1115 runs-on : ubuntu-22.04
1216 steps :
13- - uses : actions/checkout@v4
14- - name : Install pnpm
15- uses : pnpm/action-setup@v4
16- with :
17- version : 8.6.12
18- - name : Use Node.js 20
19- uses : actions/setup-node@v4
20- with :
21- node-version : 20
22- cache : ' pnpm'
23- registry-url : ' https://npm.pkg.github.com/'
24- scope : ' @codota'
25- - name : Install dependencies
26- run : pnpm install
27- - name : Build
28- run : pnpm build
29- - name : Publish to NPM
30- uses : changesets/action@v1
31- id : changesets
32- with :
33- publish : pnpm changeset publish
34- env :
35- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
17+ - uses : actions/checkout@v4
18+ - name : Install pnpm
19+ uses : pnpm/action-setup@v4
20+ with :
21+ version : 8.6.12
22+ - name : Use Node.js 20
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : 20
26+ cache : ' pnpm'
27+ registry-url : ' https://npm.pkg.github.com/'
28+ scope : ' @codota'
29+ - name : Install dependencies
30+ run : pnpm install
31+ - name : Build
32+ run : pnpm build
33+ - name : Version
34+ run : pnpm version ${{ inputs.version }} && git push && git push --tags
35+ - name : Publish
36+ run : pnpm publish
37+ env :
38+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 4848 },
4949 "devDependencies" : {
5050 "@babel/eslint-parser" : " ^7.18.2" ,
51- "@changesets/cli" : " ^2.27.9" ,
5251 "@typescript-eslint/eslint-plugin" : " ^5.26.0" ,
5352 "@typescript-eslint/parser" : " ^4.26.0" ,
5453 "@vitest/coverage-v8" : " ^2.0.1" ,
You can’t perform that action at this time.
0 commit comments