From a28b4dfe8b57ef21b5860c6b58ea5486f043a982 Mon Sep 17 00:00:00 2001 From: Levende Date: Sat, 25 May 2024 16:46:04 +0200 Subject: [PATCH] fit: fix github workflow (#28) --- .changeset/chatty-melons-whisper.md | 5 +++++ .github/workflows/release.yml | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 .changeset/chatty-melons-whisper.md diff --git a/.changeset/chatty-melons-whisper.md b/.changeset/chatty-melons-whisper.md new file mode 100644 index 0000000..47ca8d7 --- /dev/null +++ b/.changeset/chatty-melons-whisper.md @@ -0,0 +1,5 @@ +--- +"unused-i18n": patch +--- + +fix workflow diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d9277a9..0fa48f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,7 @@ jobs: - uses: pnpm/action-setup@v4.0.0 with: version: 9.1.1 + - name: Use Node.js uses: actions/setup-node@v4 with: @@ -33,19 +34,22 @@ jobs: - run: pnpm install - - name: Create Release Pull Request or Publish to npm + - name: Bump Version and Create Release Pull Request 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 run: | git push --follow-tags origin main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish to npm + run: pnpm publish --access public + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}