From 207a0e2333c43275511b7ce082e09cc93fd11c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Thu, 13 Nov 2025 12:52:52 +0100 Subject: [PATCH] fix: Remove NPM_TOKEN for OIDC auth and disable alpha branch update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Removed NODE_AUTH_TOKEN env var from publish-npm job OIDC/Trusted Publishers authentication doesn't need NPM_TOKEN secret - Commented out update-branch job since latest-alpha-cli branch doesn't exist 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/rust-release.yml | 37 +++++++++++++++--------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/.github/workflows/rust-release.yml b/.github/workflows/rust-release.yml index a98d77cb..10e7f116 100644 --- a/.github/workflows/rust-release.yml +++ b/.github/workflows/rust-release.yml @@ -511,7 +511,6 @@ jobs: env: VERSION: ${{ needs.release.outputs.version }} NPM_TAG: ${{ needs.release.outputs.npm_tag }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | set -euo pipefail tag_args=() @@ -527,21 +526,21 @@ jobs: npm publish "${GITHUB_WORKSPACE}/dist/npm/${tarball}" --provenance --access public "${tag_args[@]}" done - update-branch: - name: Update latest-alpha-cli branch - permissions: - contents: write - needs: release - runs-on: ubuntu-latest - - steps: - - name: Update latest-alpha-cli branch - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - set -euo pipefail - gh api \ - repos/${GITHUB_REPOSITORY}/git/refs/heads/latest-alpha-cli \ - -X PATCH \ - -f sha="${GITHUB_SHA}" \ - -F force=true + # update-branch: + # name: Update latest-alpha-cli branch + # permissions: + # contents: write + # needs: release + # runs-on: ubuntu-latest + # + # steps: + # - name: Update latest-alpha-cli branch + # env: + # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # run: | + # set -euo pipefail + # gh api \ + # repos/${GITHUB_REPOSITORY}/git/refs/heads/latest-alpha-cli \ + # -X PATCH \ + # -f sha="${GITHUB_SHA}" \ + # -F force=true