Skip to content

Commit 4830a4f

Browse files
committed
Update github release action
1 parent 3702525 commit 4830a4f

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish page package to npm on Release
1+
name: Publish to npm on Release
22

33
on:
44
release:
@@ -12,24 +12,22 @@ jobs:
1212
- name: Checkout repository
1313
uses: actions/checkout@v4
1414

15+
- uses: pnpm/action-setup@v4
16+
with:
17+
run_install: false
18+
1519
- name: Setup Node.js
1620
uses: actions/setup-node@v4
1721
with:
1822
node-version: 20
1923
registry-url: https://registry.npmjs.org/
2024

21-
- name: Setup pnpm
22-
uses: pnpm/action-setup@v4
23-
with:
24-
version: 9
25-
- name: Install dependencies for page package
26-
run: pnpm --filter ./packages/page... install --frozen-lockfile
25+
- name: Install dependencies
26+
run: pnpm install --frozen-lockfile
2727

28-
- name: Build page package
29-
run: pnpm --filter ./packages/page build --if-present
28+
run: pnpm run build --if-present
3029

31-
- name: Publish page package
32-
working-directory: packages/page
30+
- name: Publish to npm
3331
run: pnpm publish --access public
3432
env:
3533
NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }}

0 commit comments

Comments
 (0)