You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm set "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
107
-
if [ -z "${NPM_TOKEN}" -a "${{ inputs.dry_run }}" == "true" ]; then
113
+
if [ -z "${NODE_AUTH_TOKEN}" -a "${{ inputs.dry_run }}" == "true" ]; then
108
114
echo "Warning: An NPM access token is required for authentication and has not been provided."
109
115
else
110
116
npm whoami
111
117
fi
112
-
118
+
113
119
if [ "${{ inputs.dry_run }}" == "false" ]; then
114
120
dry_run_option=""
115
121
else
@@ -122,10 +128,9 @@ runs:
122
128
shell: bash
123
129
working-directory: ${{ inputs.package_dir }}
124
130
env:
125
-
NPM_TOKEN: ${{ inputs.api_token }}
131
+
NODE_AUTH_TOKEN: ${{ inputs.api_token }}
126
132
run: |
127
133
echo "Promote '${{ steps.prepare.outputs.package_name }}' package version '${{ steps.prepare.outputs.package_local_version }}' from 'next' to 'latest'"
128
-
npm set "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
0 commit comments