Skip to content

Commit

Permalink
build: add no-frozen-lockfile install and git add to publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bestickley committed Feb 15, 2022
1 parent 69dbc90 commit c64a94a
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,20 @@ jobs:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Install
uses: ./.github/actions/install
- name: Install PNPM
uses: pnpm/[email protected]
with:
version: 6

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: pnpm

- name: Install dependencies
# https://github.com/pnpm/pnpm/issues/3664
run: pnpm install --no-frozen-lockfile && git add .

- name: Compile TypeScript
run: pnpm build
Expand All @@ -31,14 +43,6 @@ jobs:
- name: Create PR, Update PR, or Release to NPM
uses: changesets/action@v1
with:
# pnpm changeset version will update package version which makes
# pnpm-lock.yaml out of date with packages resulting in a failed
# install for pnpm install in a CI environment (which uses)
# --frozen-lockfile by default. Therefore, we need to use
# --no-frozen-lockfile and also add changes so they can be committed
# by publish command
# https://github.com/pnpm/pnpm/issues/3664
# version: pnpm version
# publish command will only run upon merge of PR created by changesets.
# publish doesn't run on every push to main
publish: pnpm changeset publish
Expand Down

0 comments on commit c64a94a

Please sign in to comment.