fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #2615 from hey-api/ci/changesets-lock-file

ci: fix lockfile issue with changesets

authored by

Lubos and committed by
GitHub
658842a3 fd01554e

+19 -4
+1 -1
.github/workflows/ci.yml
··· 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
+1 -1
.github/workflows/coverage.yml
··· 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
+17 -2
.github/workflows/release.yml
··· 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/git-auto-commit-action@v6.0.1 71 + with: 72 + branch: ${{ env.CURRENT_BRANCH }} 73 + commit_message: 'chore: update lock file'