Skip to content

Commit e78ef69

Browse files
committed
Update publish script
1 parent cf38100 commit e78ef69

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111
jobs:
1212
publish:
1313
name: Upload archives
14-
runs-on: macos-latest
14+
runs-on: ubuntu-latest
1515
steps:
1616
- name: Check out code
1717
uses: actions/checkout@v4
@@ -22,10 +22,21 @@ jobs:
2222
node-version: '22.x'
2323
registry-url: 'https://registry.npmjs.org'
2424

25+
- name: Debug - Check npm version and config
26+
run: |
27+
echo "Node version:"
28+
node --version
29+
echo "NPM version:"
30+
npm --version
31+
echo "NPM config:"
32+
npm config list
33+
echo "OIDC token available:"
34+
echo "ACTIONS_ID_TOKEN_REQUEST_URL is set: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL != '' }}"
35+
2536
- name: Build
2637
run: |
2738
yarn
2839
yarn prepare
2940
3041
- name: Publish to npm
31-
run: npm publish
42+
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)