diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c6e6f5..ee0fd59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release +name: CI on: push: @@ -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: Set Node.js - uses: actions/setup-node@v4 - with: - registry-url: 'https://registry.npmjs.org' - - name: Install Bun uses: oven-sh/setup-bun@v2 @@ -38,9 +33,9 @@ jobs: 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: npx 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" }