From c64a94ac393856e6b81c9df509f59ea22cae30b1 Mon Sep 17 00:00:00 2001 From: Ben Stickley Date: Mon, 14 Feb 2022 21:56:35 -0500 Subject: [PATCH] build: add no-frozen-lockfile install and git add to publish.yml --- .github/workflows/publish.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 81e04388..337ff3a2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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/action-setup@v2.1.0 + 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 @@ -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