From 29a3d962b50496ee38b2e1e839f1e8c32c64aeac Mon Sep 17 00:00:00 2001 From: "sunny.luo" Date: Thu, 26 Dec 2024 12:35:18 +0800 Subject: [PATCH] add bun in action --- .github/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3292f97..cba142d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,12 +10,13 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 # Setup .npmrc file to publish to npm - uses: actions/setup-node@v4 with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' - - run: npm ci + - run: bun install --frozen-lockfile - run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}