File tree Expand file tree Collapse file tree 2 files changed +21
-16
lines changed
Expand file tree Collapse file tree 2 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 11name : CI
2+
23on :
34 push :
45 branches :
910 runs-on : ubuntu-latest
1011 steps :
1112 - uses : actions/checkout@v3
12- - uses : pnpm/action-setup@v2
13- with :
14- version : 7
15- - uses : actions/setup-node@v3
13+
14+ - name : Setup Node.js
15+ uses : actions/setup-node@v3
1616 with :
17- node-version : 16.x
18- cache : " pnpm"
17+ node-version : 18.x
18+ cache : " npm"
19+
20+ - name : Install Dependencies
21+ run : npm install --frozen-lockfile
1922
20- - run : pnpm install --frozen-lockfile
21- - run : pnpm run lint && pnpm run build
23+ - name : Lint and Build
24+ run : npm run lint && npm run build
Original file line number Diff line number Diff line change 11name : Publish
2+
23on :
34 workflow_run :
45 workflows : [CI]
@@ -17,20 +18,21 @@ jobs:
1718 runs-on : ubuntu-latest
1819 steps :
1920 - uses : actions/checkout@v3
20- - uses : pnpm/action-setup@v2
21- with :
22- version : 7
23- - uses : actions/setup-node@v3
21+
22+ - name : Setup Node.js
23+ uses : actions/setup-node@v3
2424 with :
25- node-version : 16.x
26- cache : " pnpm"
25+ node-version : 18.x
26+ cache : " npm"
27+
28+ - name : Install Dependencies
29+ run : npm install --frozen-lockfile
2730
28- - run : pnpm install --frozen-lockfile
2931 - name : Create Release Pull Request or Publish
3032 id : changesets
3133 uses : changesets/action@v1
3234 with :
33- publish : pnpm run release
35+ publish : npm run release
3436 env :
3537 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3638 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments