From 27ab48741c28e6dacb5a36198383bd4cff9595d1 Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Wed, 23 Aug 2023 10:57:42 -0700 Subject: [PATCH] ci(release): use installation access token to checkout and push back changes (#26) --- .github/workflows/release.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1b8429..222ad72 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,18 +14,14 @@ jobs: name: release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - cache: npm - node-version: lts/* - - run: npm ci - - run: npm run build - - uses: ./ # Uses the action in the root directory + - uses: actions/create-github-app-token@v1 id: app-token with: app_id: ${{ vars.RELEASER_APP_ID }} private_key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }} + - uses: actions/checkout@v3 + with: + token: ${{ steps.app-token.outputs.token }} - run: npm install --no-save @semantic-release/git semantic-release-plugin-github-breaking-version-tag - run: npx semantic-release env: