diff --git a/.github/workflows/publish-pkg.yml b/.github/workflows/publish-pkg.yml index 9940dfe..b65c29e 100644 --- a/.github/workflows/publish-pkg.yml +++ b/.github/workflows/publish-pkg.yml @@ -8,15 +8,26 @@ jobs: release: name: Release runs-on: ubuntu-latest + # Prevent the app's own release commit from re-triggering this workflow + if: github.actor != 'stallion-release-bot[bot]' permissions: write-all steps: + - name: Generate app token + id: app-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.RELEASE_APP_ID }} + private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} + - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: + token: ${{ steps.app-token.outputs.token }} fetch-depth: 0 + persist-credentials: true - name: Setup Node.js and enable Corepack - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: "20.x" @@ -26,7 +37,7 @@ jobs: corepack prepare pnpm@10.11.0 --activate - name: Cache pnpm store - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.pnpm-store key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} @@ -44,9 +55,10 @@ jobs: - name: Release package run: pnpm exec semantic-release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GIT_AUTHOR_EMAIL: ${{ secrets.GH_DEPLOY_EMAIL }} GIT_AUTHOR_NAME: ${{ secrets.GH_DEPLOY_NAME }} GIT_COMMITTER_EMAIL: ${{ secrets.GH_DEPLOY_EMAIL }} GIT_COMMITTER_NAME: ${{ secrets.GH_DEPLOY_NAME }} + DEBUG: semantic-release:* \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f08b87..6a06a69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [2.5.0-alpha.2](https://github.com/stallion-tech/stallion-cli/compare/v2.5.0-alpha.1...v2.5.0-alpha.2) (2026-06-07) + + +### Features + +* multi region auto switching support ([#43](https://github.com/stallion-tech/stallion-cli/issues/43)) ([0ab4809](https://github.com/stallion-tech/stallion-cli/commit/0ab4809f62d7ee1dcf49285468d19abef1988056)), closes [#21](https://github.com/stallion-tech/stallion-cli/issues/21) [#26](https://github.com/stallion-tech/stallion-cli/issues/26) [#27](https://github.com/stallion-tech/stallion-cli/issues/27) [#28](https://github.com/stallion-tech/stallion-cli/issues/28) [#41](https://github.com/stallion-tech/stallion-cli/issues/41) + # [2.5.0-alpha.1](https://github.com/stallion-tech/stallion-cli/compare/v2.4.3...v2.5.0-alpha.1) (2026-06-06)