Skip to content

Commit

Permalink
fit: fix github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawndlwd committed May 25, 2024
1 parent cb5fdcb commit da4c48d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-bugs-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"unused-i18n": patch
---

fix workflow
14 changes: 4 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
- uses: pnpm/[email protected]
with:
version: 9.1.1

- name: Use Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -34,24 +33,19 @@ jobs:

- run: pnpm install

- name: Bump Version and Create Release Pull Request
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
commit: 'chore: release'
title: 'chore: release'
publish: pnpm publish --access public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Push changes and tags
if: steps.changesets.outputs.hasChangesets == 'false'
run: |
git push --follow-tags origin main
run: pnpm changeset tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to npm
if: steps.changesets.outputs.hasChangesets == 'false'
run: pnpm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit da4c48d

Please sign in to comment.