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 }}"