diff --git a/.github/workflows/release-library.yml b/.github/workflows/release-library.yml index 63ab7cc..83fbb92 100644 --- a/.github/workflows/release-library.yml +++ b/.github/workflows/release-library.yml @@ -112,9 +112,9 @@ jobs: - name: Release to GitHub NPM registry 🚀 - ${{ steps.get_version.outputs.VERSION }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_CONFIG_TOKEN: ${{ secrets.NPM_GH_TOKEN }} - BUN_AUTH_TOKEN: ${{ secrets.NPM_GH_TOKEN }} + NPM_GH_TOKEN: ${{ secrets.NPM_GH_TOKEN }} + NPM_ORG: ${{ vars.NPM_ORG }} run: | cd ./${{ vars.DEMO_PATH }} - bun publish --tag ${{ steps.determine_tag.outputs.TAG }} && bunx semantic-release || echo "Package already published in GitHub NPM, skipping..." + bun publish --tag ${{ steps.determine_tag.outputs.TAG }} --config=../../bunfig.toml && bunx semantic-release || echo "Package already published in GitHub NPM, skipping..." diff --git a/bunfig.toml b/bunfig.toml new file mode 100644 index 0000000..9c79356 --- /dev/null +++ b/bunfig.toml @@ -0,0 +1,2 @@ +[install.scopes] +"$NPM_ORG" = { url = "https://npm.pkg.github.com", token = "$NPM_GH_TOKEN" } \ No newline at end of file