From 5f33e3e0c5bad4c697c9a9455e2523820b425530 Mon Sep 17 00:00:00 2001 From: fsegurai Date: Sun, 1 Dec 2024 23:54:51 -0600 Subject: [PATCH] fix/release library workflow --- .github/workflows/release-library.yml | 6 +++--- bunfig.toml | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 bunfig.toml 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