Skip to content

Commit

Permalink
Merge pull request #99 from fsegurai/development
Browse files Browse the repository at this point in the history
fix/release library workflow
  • Loading branch information
fsegurai authored Dec 2, 2024
2 parents 82f942c + 5f33e3e commit 1ea5e67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
2 changes: 2 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[install.scopes]
"$NPM_ORG" = { url = "https://npm.pkg.github.com", token = "$NPM_GH_TOKEN" }

0 comments on commit 1ea5e67

Please sign in to comment.