From 3be484eacc6f3185c7108b98dc3913e00e00c6e7 Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Fri, 6 Oct 2023 13:16:06 -0700 Subject: [PATCH 1/2] ci(release): use local version --- .github/workflows/release.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bee3bad9..1c049aa8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,16 +14,21 @@ jobs: name: release runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v1 + # build local version to create token + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: "npm" + - run: npm ci + - run: npm run build + - uses: . id: app-token with: app-id: ${{ vars.RELEASER_APP_ID }} private-key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }} - - uses: actions/checkout@v4 - with: - token: ${{ steps.app-token.outputs.token }} + # install release dependencies and release - run: npm install --no-save @semantic-release/git semantic-release-plugin-github-breaking-version-tag - - run: npm run build - run: npx semantic-release --debug env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} From 66ab788eda734e7fb8371fa5c529201bd97a0f97 Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Fri, 6 Oct 2023 13:28:12 -0700 Subject: [PATCH 2/2] Update .github/workflows/release.yml Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c049aa8..303f5ac2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: cache: "npm" - run: npm ci - run: npm run build - - uses: . + - uses: ./ id: app-token with: app-id: ${{ vars.RELEASER_APP_ID }}