From e163ad776e475ad48ff9cb06804164692c1c8e58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E6=97=AD=E6=B4=8B?= Date: Sat, 10 Feb 2024 16:05:26 +0800 Subject: [PATCH] chore: adjust workflow --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 339a79e..aaa0c56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,9 @@ jobs: release-package: if: github.event.pull_request.merged runs-on: ubuntu-latest + defaults: + run: + working-directory: workspaces/plugin steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 @@ -29,7 +32,6 @@ jobs: - name: Version Package id: versioning run: | - cd workspaces/plugin npx changeset version echo "::set-output name=tag::v$(node -pe "require('./package.json').version")" git restore . @@ -41,7 +43,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} with: - cwd: workspaces/plugin publish: npx changeset publish commit: "chore: release ${{ steps.versioning.outputs.tag }}" title: "chore: release ${{ steps.versioning.outputs.tag }}"