From 10867ca1c10d2a9ec9ca43694fdb16ecac72b901 Mon Sep 17 00:00:00 2001 From: hoshinotsuyoshi Date: Fri, 29 Nov 2024 12:20:57 +0900 Subject: [PATCH] for cd test --- .github/workflows/release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cfe2bf22..12fa333c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,8 @@ on: branches: - main - intro-changeset-on-push-feature +env: + working-directory: frontend concurrency: ${{ github.workflow }}-${{ github.ref }} @@ -21,13 +23,14 @@ jobs: steps: - uses: actions/checkout@v4 with: - sparse-checkout: frontend - - uses: pnpm/action-setup@v4.0.0 - - run: pnpm i --frozen-lockfile + sparse-checkout: ${{ env.working-directory }} + - uses: ./.github/actions/pnpm-setup + with: + working-directory: ${{ env.working-directory }} - name: Create Release Pull Request or Publish to npm uses: changesets/action@v1.4.9 with: - cwd: frontend + cwd: ${{ env.working-directory }} publish: pnpm changeset publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}