Skip to content

Commit 469a39f

Browse files
Add NODE_AUTH_TOKEN environment variable for npm publish authentication
1 parent 66c979f commit 469a39f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/publish-npm-types.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
- name: Publish @pptb/types to npm
7272
working-directory: ./packages
7373
run: |
74-
printf "registry=https://registry.npmjs.org/\n" > "$NPM_CONFIG_USERCONFIG"
7574
echo "Publishing @pptb/types@${{ steps.version.outputs.version }} with tag ${{ inputs.tag }} to npm..."
7675
npm publish --access public --tag ${{ inputs.tag }} --provenance
76+
env:
77+
NODE_AUTH_TOKEN: "" # Forces npm to use the OCDC token for authentication

0 commit comments

Comments
 (0)