diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 4aa40de..2cf006f 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -8,7 +8,7 @@ on: types: [created] jobs: - build-and-publish: + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -21,6 +21,17 @@ jobs: - run: pnpm build - run: pnpm test - run: pnpm check - - run: pnpm publish + + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + - uses: pnpm/action-setup@v4 + - run: pnpm publish --no-git-checks env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}