Skip to content

Commit 16d5b2a

Browse files
committed
chore: update action
1 parent aa8d2f5 commit 16d5b2a

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,27 @@ jobs:
1818
with:
1919
node-version: '23.3.0'
2020
registry-url: https://registry.npmjs.org/
21+
22+
# Install dependencies with pnpm
23+
- uses: pnpm/action-setup@v2
24+
with:
25+
version: latest
26+
2127
- name: Install dependencies
22-
run: npx ci
28+
run: pnpm install --frozen-lockfile
29+
30+
# Build the project
31+
- name: Build
32+
run: pnpm build
33+
2334
- name: Create release
2435
env:
2536
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2637
run: |
2738
RELEASE_TAG=v$(node -p "require('./package.json').version")
2839
gh release create $RELEASE_TAG --target=$GITHUB_SHA --title="$RELEASE_TAG" --generate-notes
29-
- name: Publish to npmjs
40+
41+
- name: Publish to npm
3042
env:
3143
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
32-
run: npm publish --access=public
44+
run: pnpm publish --access=public --no-git-checks

0 commit comments

Comments
 (0)