diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cbe5df8..1c546f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: jobs: release: - name: Release + name: release runs-on: ubuntu-latest steps: @@ -15,11 +15,6 @@ jobs: with: fetch-depth: 0 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - registry-url: 'https://registry.npmjs.org' - - name: Install Bun uses: oven-sh/setup-bun@v2 @@ -34,13 +29,10 @@ jobs: - name: Install Dependencies run: bun install - - name: Build the release - run: bun run build - - name: Publish to npm - run: npm publish --access public --no-git-checks + run: bun publish --access public env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - name: Create GitHub release run: bunx changelogithub diff --git a/bunfig.toml b/bunfig.toml new file mode 100644 index 0000000..bbfe9c4 --- /dev/null +++ b/bunfig.toml @@ -0,0 +1,2 @@ +[install] +registry = { url = "https://registry.npmjs.org/", token = "$BUN_AUTH_TOKEN" } diff --git a/pkgx.yaml b/pkgx.yaml index 7b4d211..b51a299 100644 --- a/pkgx.yaml +++ b/pkgx.yaml @@ -1,2 +1,2 @@ dependencies: - bun.sh: ^1.1.29 + bun.sh: ^1.1.30