[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

ci: use release app token for tag push [backport to v4] (#10602)

Co-authored-by: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>

authored by

Hiroshi Ogawa
Hiroshi Ogawa
Codex
and committed by
GitHub
(Jun 16, 2026, 9:15 AM +0200) 4bccca3a a7a61e78

+17 -6
+4 -2
.github/workflows/prepare-publish.yml
··· 79 79 - id: generate-token 80 80 uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 81 81 with: 82 - app-id: ${{ secrets.RELEASE_GITHUB_APP_ID }} 82 + client-id: ${{ secrets.RELEASE_GITHUB_APP_ID }} 83 83 private-key: ${{ secrets.RELEASE_GITHUB_APP_PRIVATE_KEY }} 84 + owner: ${{ github.repository_owner }} 85 + repositories: ${{ github.event.repository.name }} 84 86 permission-contents: write 85 87 permission-pull-requests: write 86 88 ··· 96 98 --base "$TARGET_BRANCH" \ 97 99 --head "$PREPARE_BRANCH" \ 98 100 --title "chore: release v$VERSION" \ 99 - --body "Release PR generated by the Prepare Publish workflow." 101 + --body "Release PR generated by the Prepare Publish workflow: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
+13 -4
.github/workflows/publish.yml
··· 115 115 PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN: 'false' 116 116 run: pnpm run publish-ci "$VERSION" 117 117 118 + - id: generate-token 119 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 120 + with: 121 + client-id: ${{ secrets.RELEASE_GITHUB_APP_ID }} 122 + private-key: ${{ secrets.RELEASE_GITHUB_APP_PRIVATE_KEY }} 123 + owner: ${{ github.repository_owner }} 124 + repositories: ${{ github.event.repository.name }} 125 + permission-contents: write 126 + 118 127 - name: Push release tag 119 128 env: 120 129 VERSION: ${{ needs.detect.outputs.version }} 121 - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 130 + GH_TOKEN: ${{ steps.generate-token.outputs.token }} 122 131 run: | 123 132 TAG="v$VERSION" 124 - git config user.name "vitest-release-bot" 125 - git config user.email "actions@github.com" 133 + git config user.name "vitest-release-bot[bot]" 134 + git config user.email "292707936+vitest-release-bot[bot]@users.noreply.github.com" 126 135 git tag "$TAG" "$GITHUB_SHA" 127 - git push "https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" "$TAG" 136 + git push "https://x-access-token:$GH_TOKEN@github.com/$GITHUB_REPOSITORY.git" "$TAG" 128 137 129 138 - name: Generate Changelog 130 139 env: