Skip to content

Commit 91b13c3

Browse files
committed
ci: adapt to pnpm/action-setup@v6
1 parent 7c75134 commit 91b13c3

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

.github/workflows/create-release.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ jobs:
1717
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1818
with:
1919
fetch-depth: 0
20-
- uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
2120
- uses: pnpm/action-setup@08c4be7e2e672a47d11bd04269e27e5f3e8529cb # v6
22-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2321
with:
24-
cache: pnpm
25-
- run: pnpm install --frozen-lockfile
22+
cache: true
23+
run_install: true
24+
- uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
2625
- run: pnpm exec git-cliff --current --strip all -o /tmp/release-notes.md
2726
- uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
2827
with:

.github/workflows/publish-package.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ jobs:
1414
url: https://www.npmjs.com/package/@faergeek/tiny-browser-hmr-webpack-plugin
1515
steps:
1616
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
17-
- uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
1817
- uses: pnpm/action-setup@08c4be7e2e672a47d11bd04269e27e5f3e8529cb # v6
18+
with:
19+
cache: true
20+
run_install: true
1921
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2022
with:
21-
cache: pnpm
2223
registry-url: https://registry.npmjs.org/
24+
- uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
2325
- run: pnpm install --frozen-lockfile
2426
- run: pnpm run build
25-
- run: pnpm publish --access public --no-git-checks --provenance
27+
- run: |
28+
npm config set //registry.npmjs.org/:_authToken '${NODE_AUTH_TOKEN}'
29+
npm publish --access public --provenance

.github/workflows/pull-request.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ jobs:
1919
fetch-depth: 0
2020
ref: ${{ github.head_ref }}
2121
token: ${{ steps.app-token.outputs.token }}
22-
- uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
2322
- uses: pnpm/action-setup@08c4be7e2e672a47d11bd04269e27e5f3e8529cb # v6
24-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2523
with:
26-
cache: pnpm
27-
- run: pnpm install --frozen-lockfile
24+
cache: true
25+
run_install: true
26+
- uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
2827
- run: pnpm exec commitlint --verbose --from="remotes/origin/$GITHUB_BASE_REF"
2928
- name: update changelog
3029
run: |

.github/workflows/push.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
15-
- uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
1615
- uses: pnpm/action-setup@08c4be7e2e672a47d11bd04269e27e5f3e8529cb # v6
17-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
1816
with:
19-
cache: pnpm
20-
- run: pnpm install --frozen-lockfile
17+
cache: true
18+
run_install: true
19+
- uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
2120
- run: pnpm run format:check
2221
- run: pnpm run lint
2322
- run: pnpm run build
@@ -35,12 +34,11 @@ jobs:
3534
with:
3635
fetch-depth: 0
3736
token: ${{ steps.app-token.outputs.token }}
38-
- uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
3937
- uses: pnpm/action-setup@08c4be7e2e672a47d11bd04269e27e5f3e8529cb # v6
40-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
4138
with:
42-
cache: pnpm
43-
- run: pnpm install --frozen-lockfile
39+
cache: true
40+
run_install: true
41+
- uses: asdf-vm/actions/install@b7bcd026f18772e44fe1026d729e1611cc435d47 # v4
4442
- name: bump version
4543
run: |
4644
version=$(pnpm exec git-cliff --bumped-version)

0 commit comments

Comments
 (0)