Skip to content

Commit

Permalink
fix: Add "setup-node" step to publish workflow (#1291)
Browse files Browse the repository at this point in the history
  • Loading branch information
harmony7 authored Aug 15, 2024
1 parent d3387b9 commit 35b5387
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 35b5387

Please sign in to comment.