Skip to content

Commit 64f8c30

Browse files
authored
🐛 pin pnpm version in workflows (#379)
* 🐛 pin pnpm version in workflows * 🐛 github release workflows require permissions changesets/action#220 (comment) * 📝 update release note
1 parent 151c279 commit 64f8c30

File tree

8 files changed

+34
-6
lines changed

8 files changed

+34
-6
lines changed

.changeset/dry-radios-crash.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@aiou/generator-pnpm-ci": patch
3+
"@aiou/preset-aiou": patch
4+
---
5+
6+
pin pnpm version

.changeset/spicy-mayflies-jog.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@aiou/generator-pnpm-ci": patch
3+
"@aiou/preset-aiou": patch
4+
---
5+
6+
github workflows require permissions https://github.com/changesets/action/issues/220#issuecomment-1396656742

packages/generators/pnpm-ci/assets/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
node-version: ${{ matrix.node-version }}
2626
- name: Install pnpm
27-
run: npm i pnpm@latest -g
27+
run: npm i pnpm@7.32.1 -g
2828
- name: Install
2929
run: |
3030
pnpm install --frozen-lockfile=false

packages/generators/pnpm-ci/assets/workflows/release.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
version:
1515
timeout-minutes: 15
1616
runs-on: ubuntu-latest
17+
permissions:
18+
contents: write
19+
packages: write
20+
pull-requests: write
1721
steps:
1822
- name: checkout code repository
1923
uses: actions/checkout@v2
@@ -24,7 +28,7 @@ jobs:
2428
with:
2529
node-version: 14
2630
- name: install pnpm
27-
run: npm i pnpm@latest -g
31+
run: npm i pnpm@7.32.1 -g
2832
- name: install dependencies
2933
run: pnpm install --frozen-lockfile=false
3034
- name: create and publish versions

packages/generators/pnpm-ci/assets/workflows/snapshot-release.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
version:
1313
timeout-minutes: 15
1414
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
packages: write
18+
pull-requests: write
1519
steps:
1620
- name: checkout code repository
1721
uses: actions/checkout@v2
@@ -22,7 +26,7 @@ jobs:
2226
with:
2327
node-version: 14
2428
- name: install pnpm
25-
run: npm i pnpm@latest -g
29+
run: npm i pnpm@7.32.1 -g
2630
- name: install dependencies
2731
run: pnpm install --frozen-lockfile=false
2832
- name: create and publish versions

packages/presets/aiou/assets/workflows/pnpm/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
node-version: ${{ matrix.node-version }}
2626
- name: Install pnpm
27-
run: npm i pnpm@latest -g
27+
run: npm i pnpm@7.32.0 -g
2828
- name: Install
2929
run: |
3030
pnpm install --frozen-lockfile=false

packages/presets/aiou/assets/workflows/pnpm/release.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ jobs:
1111
version:
1212
timeout-minutes: 15
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
packages: write
17+
pull-requests: write
1418
steps:
1519
- name: checkout code repository
1620
uses: actions/checkout@v2
@@ -21,7 +25,7 @@ jobs:
2125
with:
2226
node-version: 14
2327
- name: install pnpm
24-
run: npm i pnpm@latest -g
28+
run: npm i pnpm@7.32.0 -g
2529
- name: install dependencies
2630
run: pnpm install --frozen-lockfile=false
2731
- name: create and publish versions

packages/presets/aiou/assets/workflows/pnpm/snapshot-release.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ jobs:
99
version:
1010
timeout-minutes: 15
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
packages: write
15+
pull-requests: write
1216
steps:
1317
- name: checkout code repository
1418
uses: actions/checkout@v2
@@ -19,7 +23,7 @@ jobs:
1923
with:
2024
node-version: 14
2125
- name: install pnpm
22-
run: npm i pnpm@latest -g
26+
run: npm i pnpm@7.32.0 -g
2327
- name: install dependencies
2428
run: pnpm install --frozen-lockfile=false
2529
- name: create and publish versions

0 commit comments

Comments
 (0)