Skip to content

Commit 0a93685

Browse files
committed
replace missing npm OIDC config
1 parent a9f56b0 commit 0a93685

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/publish-npm.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ jobs:
132132
echo "✓ @vue-skuilder/$package build output verified"
133133
done
134134
135+
- name: Configure Yarn for OIDC publishing
136+
run: |
137+
yarn config set npmAlwaysAuth true
138+
yarn config set npmAuthToken $NODE_AUTH_TOKEN
139+
yarn config set npmRegistryServer https://registry.npmjs.org
140+
135141
- name: Publish packages in dependency order
136142
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'false')
137143
run: |
@@ -193,7 +199,6 @@ jobs:
193199
cd ../..
194200
echo "All packages published successfully!"
195201
env:
196-
YARN_NPM_REGISTRY_SERVER: "https://registry.npmjs.org"
197202
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
198203
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
199204

0 commit comments

Comments
 (0)