Skip to content

Commit

Permalink
chore: switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
kormide committed Dec 9, 2024
1 parent 28ea23b commit 9b2b333
Show file tree
Hide file tree
Showing 6 changed files with 6,257 additions and 5,507 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
cache: pnpm
- uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: pnpm run test

e2e:
runs-on: ubuntu-latest
Expand All @@ -32,6 +37,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
# Setup gcloud application default credentials. While the credentials are not actually
# used because Google api services are stubbed, instantiating any of the Google node
# clients requires the credentials file to exist and be valid.
Expand All @@ -41,5 +51,5 @@ jobs:
- uses: google-github-actions/setup-gcloud@v2
with:
version: ">= 363.0.0"
- run: yarn install --frozen-lockfile
- run: yarn e2e
- run: pnpm install --frozen-lockfile
- run: pnpm run e2e
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
dist
node_modules
yarn-error.log
.DS_Store
.terraform
*.tfstate.backup
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pnpm-lock.yaml
templates/.bcr
templates/README.md
templates/README.md
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prebuild": "node tools/clean-dist-files.js",
"build": "tsc && node tools/copy-dist-files.js",
"test": "jest src",
"pree2e": "yarn build",
"pree2e": "pnpm run build",
"e2e": "jest e2e"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 9b2b333

Please sign in to comment.