diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 1a160eb8b..ab743cb72 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -81,8 +81,9 @@ jobs: uses: actions/github-script@v7 with: script: | - const octokit = github.getOctokit('${{ secrets.GITHUB_TOKEN }}'); - const superOctokit = github.getOctokit('${{ secrets.REPO_PAT }}'); + const { Octokit } = require('@octokit/rest'); + const octokit = new Octokit({ auth: '${{ secrets.GITHUB_TOKEN }}' }); + const superOctokit = new Octokit({ auth: '${{ secrets.REPO_PAT }}' }); const sourceTag = 'v${{ env.VERSION }}'; const targetTag = sourceTag.split('.')[0];