diff --git a/.github/workflows/publish-prerelease.yml b/.github/workflows/publish-prerelease.yml index 23416c26..baab35f9 100644 --- a/.github/workflows/publish-prerelease.yml +++ b/.github/workflows/publish-prerelease.yml @@ -10,6 +10,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.PAT_GITHUB }} - name: Git config run: | @@ -71,5 +72,3 @@ jobs: run: | chmod +x ./scripts/add_build_number.sh yarn release --increment=$(./scripts/add_build_number.sh) --preRelease=beta --ci - env: - GITHUB_TOKEN: ${{ secrets.REPO_PAT }} diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index d4601f40..55af5f6b 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -10,6 +10,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.PAT_GITHUB }} - name: Git config run: | @@ -71,5 +72,3 @@ jobs: run: | chmod +x ./scripts/add_build_number.sh yarn release --increment=$(cat version.txt) - env: - GITHUB_TOKEN: ${{ secrets.REPO_PAT }}