From b03c622044f465d04e51aa2ad5a79dd7a178bb28 Mon Sep 17 00:00:00 2001 From: stakbucks Date: Tue, 19 Aug 2025 00:13:40 +0900 Subject: [PATCH 1/2] chore: improve release workflow --- .github/workflows/release.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 09da81b..5e388fb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,16 +33,24 @@ jobs: run: pnpm install --frozen-lockfile - name: Update Version + working-directory: packages/event-tracker run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" npm version ${{ github.event.inputs.version }} -m "Release v%s" - git checkout -b release/${{ github.event.inputs.version }} - git push --set-upstream origin release/${{ github.event.inputs.version }} + git add package.json + git commit -m "Release v${{ github.event.inputs.version }}" + git tag v${{ github.event.inputs.version }} + git push origin HEAD git push --tags + - name: Run Tests + working-directory: packages/event-tracker + run: pnpm run ci:test + - name: Build Package - run: pnpm build + working-directory: packages/event-tracker + run: pnpm run build - name: Create GitHub Release env: @@ -53,6 +61,7 @@ jobs: --generate-notes - name: Publish to npm - run: pnpm -F @offlegacy/event-tracker publish --no-git-checks + working-directory: packages/event-tracker + run: pnpm publish --no-git-checks env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 42d0e823f949404d7757a913a3d0cafe0bea63e0 Mon Sep 17 00:00:00 2001 From: stakbucks Date: Tue, 19 Aug 2025 00:17:59 +0900 Subject: [PATCH 2/2] chore: use release branch --- .github/workflows/release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e388fb..a568446 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,10 +38,8 @@ jobs: git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" npm version ${{ github.event.inputs.version }} -m "Release v%s" - git add package.json - git commit -m "Release v${{ github.event.inputs.version }}" - git tag v${{ github.event.inputs.version }} - git push origin HEAD + git checkout -b release/${{ github.event.inputs.version }} + git push --set-upstream origin release/${{ github.event.inputs.version }} git push --tags - name: Run Tests