From b11bdee717c6e7dfa3d013dd240b1d064498f1c9 Mon Sep 17 00:00:00 2001 From: kissel Date: Thu, 22 Feb 2024 17:48:05 +0100 Subject: [PATCH] update release.yml and use release app --- .github/workflows/release.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 47b72a01..222d9981 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,10 +12,18 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.DISY_RELEASE_APP_ID }} + private-key: ${{ secrets.DISY_RELEASE_APP_SECRET }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ steps.app-token.outputs.token }} - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version-file: package.json cache: 'npm' @@ -37,7 +45,7 @@ jobs: # Update changelog unreleased section with new version - name: Update changelog - uses: superfaceai/release-changelog-action@v1 + uses: superfaceai/release-changelog-action@v2 with: path-to-changelog: CHANGELOG.md version: ${{ env.NEW_VERSION }} @@ -57,7 +65,7 @@ jobs: - id: get-changelog name: Get version changelog - uses: superfaceai/release-changelog-action@v1 + uses: superfaceai/release-changelog-action@v2 with: path-to-changelog: CHANGELOG.md version: ${{ env.NEW_VERSION }}