From df2ad11cecfd7342b0da541cd2d708047fb34815 Mon Sep 17 00:00:00 2001 From: Nan72 Date: Fri, 14 Feb 2025 13:04:49 +0700 Subject: [PATCH] ref(git): command in workflow --- .github/workflows/npm-publish.yml | 9 ++++++--- package.json | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 1614f3f..a2ae60e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,9 +11,12 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 - - uses: oven-sh/setup-bun@v2 - - run: bun install - - run: bun run build + - name: Setup pnpm + uses: pnpm/action-setup@v3 # docs https://pnpm.io/continuous-integration#github-actions + with: + version: 9 # Optional: specify a pnpm version + - run: pnpm install + - run: pnpm build - name: Publish to NPM run: npm publish --provenance --access public env: diff --git a/package.json b/package.json index b60b015..0a706fa 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ }, "scripts": { "dev": "bun build.ts dev", - "build": "bun build.ts", + "build": "tsc build.ts", "publish": "npm publish --provenance" }, "dependencies": {