-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add no-frozen-lockfile install and git add to publish.yml
- Loading branch information
1 parent
69dbc90
commit c64a94a
Showing
1 changed file
with
14 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|