fix: add NODE_AUTH_TOKEN and always-auth (#8163)
This commit is contained in:
@@ -205,6 +205,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '24.10.0'
|
node-version: '24.10.0'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
always-auth: true
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4
|
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4
|
||||||
@@ -298,6 +299,14 @@ jobs:
|
|||||||
} >> "$GITHUB_STEP_SUMMARY"
|
} >> "$GITHUB_STEP_SUMMARY"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Configure npm authentication
|
||||||
|
if: inputs.dry-run != true && github.ref == 'refs/heads/main'
|
||||||
|
run: |
|
||||||
|
cd ui
|
||||||
|
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||||
|
|
||||||
- name: Publish to npm
|
- name: Publish to npm
|
||||||
if: inputs.dry-run != true && github.ref == 'refs/heads/main'
|
if: inputs.dry-run != true && github.ref == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user