Skip to content

Commit eea6b04

Browse files
committed
chore: switch from npm to pnpm
1 parent da11ff0 commit eea6b04

File tree

9 files changed

+2222
-9
lines changed

9 files changed

+2222
-9
lines changed

.github/workflows/apply.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,16 @@ jobs:
2727
- name: Discover workspaces
2828
id: workspaces
2929
run: echo "this=$(ls github | jq --raw-input '[.[0:-4]]' | jq -sc add)" >> $GITHUB_OUTPUT
30-
- run: npm ci && npm run build
30+
- name: Install pnpm
31+
uses: pnpm/action-setup@v4
32+
with:
33+
version: 10
34+
- name: Use Node.js lts/*
35+
uses: actions/setup-node@v6
36+
with:
37+
node-version: lts/*
38+
cache: false
39+
- run: pnpm install --frozen-lockfile && pnpm run build
3140
working-directory: scripts
3241
- name: Find sha for plan
3342
id: sha

.github/workflows/cleanup.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,17 @@ jobs:
3838
steps:
3939
- name: Checkout
4040
uses: actions/checkout@v5
41+
- name: Install pnpm
42+
uses: pnpm/action-setup@v4
43+
with:
44+
version: 10
45+
- name: Use Node.js lts/*
46+
uses: actions/setup-node@v6
47+
with:
48+
node-version: lts/*
49+
cache: false
4150
- name: Initialize scripts
42-
run: npm install && npm run build
51+
run: pnpm install --frozen-lockfile && pnpm run build
4352
working-directory: scripts
4453
- name: Remove inactive members
4554
run: node lib/actions/remove-inactive-members.js

.github/workflows/fix.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,17 @@ jobs:
100100
- name: Initialize terraform
101101
run: terraform init
102102
working-directory: terraform
103+
- name: Install pnpm
104+
uses: pnpm/action-setup@v4
105+
with:
106+
version: 10
107+
- name: Use Node.js lts/*
108+
uses: actions/setup-node@v6
109+
with:
110+
node-version: lts/*
111+
cache: false
103112
- name: Initialize scripts
104-
run: npm ci && npm run build
113+
run: pnpm install --frozen-lockfile && pnpm run build
105114
working-directory: scripts
106115
- name: Fix
107116
id: fix

.github/workflows/labels.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,17 @@ jobs:
3636
steps:
3737
- name: Checkout
3838
uses: actions/checkout@v5
39+
- name: Install pnpm
40+
uses: pnpm/action-setup@v4
41+
with:
42+
version: 10
43+
- name: Use Node.js lts/*
44+
uses: actions/setup-node@v6
45+
with:
46+
node-version: lts/*
47+
cache: false
3948
- name: Initialize scripts
40-
run: npm install && npm run build
49+
run: pnpm install --frozen-lockfile && pnpm run build
4150
working-directory: scripts
4251
- name: Sync
4352
run: node lib/actions/sync-labels.js

.github/workflows/sync.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,20 @@ jobs:
8181
run: |
8282
terraform show -json > $TF_WORKSPACE.tfstate.json
8383
working-directory: terraform
84+
- name: Install pnpm
85+
uses: pnpm/action-setup@v4
86+
with:
87+
version: 10
88+
- name: Use Node.js lts/*
89+
uses: actions/setup-node@v6
90+
with:
91+
node-version: lts/*
92+
cache: false
8493
- name: Sync
8594
run: |
86-
npm ci
87-
npm run build
88-
npm run main
95+
pnpm install --frozen-lockfile
96+
pnpm run build
97+
pnpm run main
8998
working-directory: scripts
9099
- uses: ./.github/actions/git-config-user
91100
- env:

.github/workflows/update.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@ jobs:
2121
shell: bash
2222
steps:
2323
- uses: actions/checkout@v5
24-
- run: npm ci && npm run build
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: 10
28+
- name: Use Node.js lts/*
29+
uses: actions/setup-node@v6
30+
with:
31+
node-version: lts/*
32+
cache: false
33+
- run: pnpm install --frozen-lockfile && pnpm run build
2534
working-directory: scripts
2635
- name: Update PRs
2736
env:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4949
- tf: to prevent destroy of membership and repository resources
5050
- apply: find sha for plan using proper credentials
5151
- updated upload and download artifacts actions to v4
52+
- switched from npm to pnpm
5253

5354
### Fixed
5455
- include labels in the config resources only if they are explicitly defined in the config

scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lint:fix": "eslint --fix \"src/**/*.ts\" \"__tests__/**/*.ts\"",
1313
"test": "TF_EXEC=false TF_LOCK=false TF_WORKING_DIR=__tests__/__resources__/terraform GITHUB_DIR=__tests__/__resources__/github FILES_DIR=__tests__/__resources__/files GITHUB_ORG=default node --import tsx/esm --test --experimental-test-module-mocks \"__tests__/**/*.test.ts\"",
1414
"test:only": "TF_EXEC=false TF_LOCK=false TF_WORKING_DIR=__tests__/__resources__/terraform GITHUB_DIR=__tests__/__resources__/github FILES_DIR=__tests__/__resources__/files GITHUB_ORG=default node --import tsx/esm --test --test-only --experimental-test-module-mocks \"__tests__/**/*.test.ts\"",
15-
"all": "npm run build && npm run format && npm run lint && npm test",
15+
"all": "pnpm run build && pnpm run format && pnpm run lint && pnpm test",
1616
"schema": "ts-json-schema-generator --tsconfig tsconfig.json --path src/yaml/schema.ts --type ConfigSchema --out ../github/.schema.json",
1717
"main": "node lib/main.js"
1818
},

0 commit comments

Comments
 (0)