Skip to content

Commit af58d3e

Browse files
committed
fit: fix github workflow
1 parent 606d210 commit af58d3e

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.changeset/chatty-melons-whisper.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"unused-i18n": patch
3+
---
4+
5+
fix workflow

.github/workflows/release.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- uses: pnpm/[email protected]
2626
with:
2727
version: 9.1.1
28+
2829
- name: Use Node.js
2930
uses: actions/setup-node@v4
3031
with:
@@ -33,19 +34,22 @@ jobs:
3334

3435
- run: pnpm install
3536

36-
- name: Create Release Pull Request or Publish to npm
37+
- name: Bump Version and Create Release Pull Request
3738
id: changesets
3839
uses: changesets/action@v1
3940
with:
4041
commit: 'chore: release'
4142
title: 'chore: release'
42-
publish: pnpm publish --access public
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4645

4746
- name: Push changes and tags
4847
run: |
4948
git push --follow-tags origin main
5049
env:
5150
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
52+
- name: Publish to npm
53+
run: pnpm publish --access public
54+
env:
55+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)