diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index b2712116d..ab1cf1a2d 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -17,6 +17,12 @@ jobs: run: npm install && npm version "${{ github.ref_name }}" --allow-same-version - name: Publish npm packages working-directory: ./npm/@fastly - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: for dir in *; do (echo $dir && cd $dir && npm publish); done + run: | + for dir in *; do + ( + echo $dir + cd $dir + npm config set "//registry.npmjs.org/:_authToken" "${{ secrets.NPM_TOKEN }}" + npm publish + ) + done