diff --git a/.changeset/few-bugs-call.md b/.changeset/few-bugs-call.md new file mode 100644 index 0000000..47ca8d7 --- /dev/null +++ b/.changeset/few-bugs-call.md @@ -0,0 +1,5 @@ +--- +"unused-i18n": patch +--- + +fix workflow diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index afe3561..322de26 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,6 @@ jobs: - uses: pnpm/action-setup@v4.0.0 with: version: 9.1.1 - - name: Use Node.js uses: actions/setup-node@v4 with: @@ -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 }}