From bfb03d6963d15b18ae64fd17b53bcc9400edc029 Mon Sep 17 00:00:00 2001 From: Arghya Ghosh <71373838+uiuxarghya@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:04:31 +0530 Subject: [PATCH] chore: Update .github/workflows/publish.yml to use bun as package manager and update node version to 20.x --- .github/workflows/publish.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0eb91aa..6442444 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,5 +1,4 @@ name: publish - on: release: types: [created] @@ -11,20 +10,25 @@ jobs: packages: write steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v2 - - uses: oven-sh/setup-bun@v2 + - uses: actions/setup-node@v4 with: - node-version: "20" + node-version: "20.x" registry-url: https://registry.npmjs.org/ + + - uses: oven-sh/setup-bun@v2 - run: bun install - run: bun run lint - - run: bun run build - run: npm publish --access=public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - - uses: actions/setup-node@v2 + + - uses: actions/setup-node@v4 with: registry-url: https://npm.pkg.github.com/ + + - uses: oven-sh/setup-bun@v2 + - run: bun install + - run: bun run lint - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}