File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 29
29
- uses : actions/setup-node@v4
30
30
with :
31
31
node-version : ${{ matrix.node-version }}
32
- cache : ' pnpm'
32
+ cache : pnpm
33
33
34
34
- name : Install dependencies
35
35
run : pnpm install
Original file line number Diff line number Diff line change 30
30
- uses : actions/setup-node@v4
31
31
with :
32
32
node-version : ${{ matrix.node-version }}
33
- cache : ' pnpm'
33
+ cache : pnpm
34
34
35
35
- name : Install dependencies
36
36
run : pnpm install
Original file line number Diff line number Diff line change @@ -30,10 +30,11 @@ jobs:
30
30
- uses : actions/setup-node@v4
31
31
with :
32
32
node-version : ${{ matrix.node-version }}
33
- cache : ' pnpm'
33
+ cache : pnpm
34
34
35
35
- name : Install Dependencies
36
- run : pnpm install
36
+ # prevent lockfile mismatch error
37
+ run : pnpm install --frozen-lockfile
37
38
38
39
- name : Build
39
40
run : pnpm build
56
57
GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
57
58
NPM_CONFIG_PROVENANCE : true
58
59
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
60
+
61
+ - name : Get current branch
62
+ run : echo "CURRENT_BRANCH=$(git branch --show-current)" >> $GITHUB_ENV
63
+
64
+ - name : Update lock file
65
+ if : env.CURRENT_BRANCH == 'changeset-release/main'
66
+ run : pnpm install --lockfile-only
67
+
68
+ - name : Commit lock file
69
+ if : env.CURRENT_BRANCH == 'changeset-release/main'
70
+ uses :
stefanzweifel/[email protected]
71
+ with :
72
+ branch : ${{ env.CURRENT_BRANCH }}
73
+ commit_message : ' chore: update lock file'
You can’t perform that action at this time.
0 commit comments