Skip to content

Commit

Permalink
use npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Huang-Hobbs authored and Max Huang-Hobbs committed Dec 3, 2024
1 parent 37b40e0 commit 58f7667
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,9 @@ jobs:
git tag "v$PACKAGE_VERSION"
git push origin main --tags
# Required to do github releasing from napi & prep `optionalDependencies` in package.json
# for final publish
yarn prepublishOnly
# show the content about to be published
tree
# Publish all packages
yarn npm publish --tag "latest" --access public --tolerate-republish
# dependency packages are published via "npm prepublishOnly"
# which runs the napi-rs cli under the hood.
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit 58f7667

Please sign in to comment.