Skip to content

Commit

Permalink
Updates GitHub actions to use pnpm to install.
Browse files Browse the repository at this point in the history
Refs #63.

Since the `package-lock.json` was deleted, `npm` can no longer install without generating it. We should be using `pnpm` for everything.
  • Loading branch information
dgp1130 committed Feb 18, 2023
1 parent 2d68423 commit 323d0d1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

# Install the package, including Bazel.
- name: Install
run: bazel run @nodejs_host//:npm -- ci
run: bazel run @pnpm//:pnpm -- install --dir $PWD --frozen-lockfile

# Build and test the entire repository. Include all supported
# `--incompatible_*` flags to avoid regressions.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
key: bazel

- name: Install
run: bazel run @nodejs_host//:npm -- ci
run: bazel run @pnpm//:pnpm -- install --dir $PWD --frozen-lockfile

# Lint the entire repository. This does not take changes into account and
# will show existing lint failures as well as new ones, but that's ok for a
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
key: bazel

- name: Install
run: bazel run @nodejs_host//:npm -- ci
run: bazel run @pnpm//:pnpm -- install --dir $PWD --frozen-lockfile

# Lint each commit in the given PR.
- name: Lint PR
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

# Install the package, including Bazel.
- name: Install
run: bazel run @nodejs_host//:npm -- ci
run: bazel run @pnpm//:pnpm -- install --dir $PWD --frozen-lockfile

# Build and test the entire repository.
- name: Test
Expand Down

0 comments on commit 323d0d1

Please sign in to comment.