From efd656857fd11d99cc64a370e01f882bf3d0d35c Mon Sep 17 00:00:00 2001 From: Michael van Tellingen Date: Mon, 26 Oct 2026 17:51:59 +0100 Subject: [PATCH] ci: use release app token for changesets --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7eab4f5..384d6fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,9 +78,19 @@ jobs: - name: Upgrade npm for trusted publishing run: npm i -g npm@^11.6.4 + - name: Create release app token + id: app-token + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + with: + app-id: ${{ vars.RELEASE_APP_ID }} + private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} + permission-contents: write + permission-pull-requests: write + - name: Create and publish versions uses: changesets/action@ae32849d5ba541f9ae29e40e22a623bc13562f51 # v2.1.2 with: + github-token: ${{ steps.app-token.outputs.token }} pr-title: "Release new version" commit-message: "update version" publish-script: pnpm publish:ci @@ -89,5 +99,4 @@ jobs: # git CLI path keeps the previous behaviour. push-with-git-cli: true env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_CONFIG_PROVENANCE: true