Skip to content

Commit 4f20ea9

Browse files
committed
Update release workflow and remove redundant CI
1 parent d5cab9a commit 4f20ea9

3 files changed

Lines changed: 16 additions & 67 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/release_package.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,30 @@ jobs:
5555
- name: Checkout
5656
uses: actions/checkout@v4
5757

58+
- name: Setup pnpm
59+
uses: pnpm/action-setup@v4
60+
with:
61+
version: "10"
62+
run_install: false
63+
5864
# Setup Node.js environment
5965
- name: Setup Node.js
6066
uses: actions/setup-node@v4
6167
with:
6268
registry-url: https://registry.npmjs.org/
6369
node-version: "22"
64-
cache: pnpm
6570

66-
- name: Setup pnpm
67-
uses: pnpm/action-setup@v4
71+
- name: Get pnpm store path
72+
id: pnpm-store
73+
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
74+
75+
- name: Cache pnpm store
76+
uses: actions/cache@v4
6877
with:
69-
version: "10"
78+
path: ${{ steps.pnpm-store.outputs.STORE_PATH }}
79+
key: ${{ runner.os }}-pnpm-22-${{ hashFiles('pnpm-lock.yaml') }}
80+
restore-keys: |
81+
${{ runner.os }}-pnpm-22-
7082
7183
- name: Ensure npm supports trusted publishing
7284
run: npm install -g npm@^11.5.1

0 commit comments

Comments
 (0)