Skip to content

Commit

Permalink
fit: fix github workflow (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawndlwd authored May 25, 2024
1 parent aefb989 commit ed900cd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/sweet-students-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"unused-i18n": patch
---

fix workflow
21 changes: 18 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ on:
jobs:
release:
runs-on: ubuntu-latest
permissions: write-all
permissions:
contents: write
packages: write
issues: write
pull-requests: write

steps:
- uses: actions/checkout@v4
Expand All @@ -35,7 +39,18 @@ jobs:
with:
commit: 'chore: release'
title: 'chore: release'
publish: pnpm publish --access public
publish: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

- name: Push changes and tags
run: |
git push --follow-tags origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit ed900cd

Please sign in to comment.