Skip to content

Commit 755acc2

Browse files
node setup and registry connectivity diagnose (#694)
1 parent 14c3d5a commit 755acc2

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/publish_preview.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,29 @@ jobs:
2525
runs-on: macos-latest
2626
needs: [package]
2727
steps:
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: '20'
32+
registry-url: 'https://registry.npmjs.org'
2833
- name: Download Assembled Folder
2934
uses: actions/download-artifact@v4
3035
with:
3136
name: 'Assembled'
3237
path: Package/Assembled
38+
- name: Diagnose NPM Registry Connectivity
39+
env:
40+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
run: |
42+
echo "--- Node & NPM versions ---"
43+
node --version
44+
npm --version
45+
echo "--- NPM config registry ---"
46+
npm config get registry
47+
echo "--- NPM ping ---"
48+
npm ping
49+
echo "--- NPM whoami ---"
50+
npm whoami
3351
- name: Version & Publish Package
3452
run: |
3553
npm version --no-git-tag-version ${{ github.event.inputs.release_version }}

0 commit comments

Comments
 (0)