Skip to content

Commit f5cbc5a

Browse files
committed
ci: replace node setup with custom pnpm action
1 parent cfdc7df commit f5cbc5a

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,11 @@ jobs:
2424
with:
2525
fetch-depth: 0
2626

27-
- name: Install Node
28-
uses: actions/setup-node@v4
27+
- name: Setup PNPM
28+
uses: ./.github/actions/setup-pnpm
2929
with:
3030
node-version: 22
31-
32-
- name: Install PNPM
33-
run: npm i pnpm@latest -g
34-
35-
- name: Setup npmrc
36-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
37-
38-
- name: setup pnpm config
39-
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
40-
41-
- name: Install Package
42-
run: pnpm install
31+
npm-token: ${{ secrets.NPM_TOKEN }}
4332

4433
- name: Build Package
4534
run: pnpm run build
@@ -52,4 +41,4 @@ jobs:
5241
cd packages/$PACKAGE_NAME
5342
pnpm publish --no-git-checks --provenance --access public
5443
env:
55-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
44+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)