diff --git a/.github/actions/init/action.yml b/.github/actions/init/action.yml index d8434e3bf6..d3f59b878d 100644 --- a/.github/actions/init/action.yml +++ b/.github/actions/init/action.yml @@ -35,6 +35,10 @@ inputs: turbo-token: description: 'The token to use for Turbo remote auth' required: true + node-auth-token: + description: 'The token to use for publishing packages to NPM' + required: false + default: '' runs: using: "composite" @@ -90,6 +94,7 @@ runs: uses: actions/setup-node@v3 with: node-version: ${{ inputs.node-version }} + NODE_AUTH_TOKEN: ${{ inputs.node-auth-token }} - name: Cache node_modules uses: actions/cache@v3 diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index 9357d822f5..1775a5340e 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -48,6 +48,7 @@ jobs: turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }} turbo-team: ${{ vars.TURBO_TEAM }} turbo-token: ${{ secrets.TURBO_TOKEN }} + node-auth-token: ${{ secrets.NPM_TOKEN }} - name: Extract snapshot name id: extract-snapshot-name