diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index d3763e1..aea2507 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -9,26 +9,17 @@ on: - v* jobs: - build: + build-and-publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18.17 + registry-url: https://registry.npmjs.org/ - run: npm install -g pnpm - run: pnpm install - run: pnpm run build - - publish-npm: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 18.17 - registry-url: https://registry.npmjs.org/ - - run: npm publish + - run: pnpm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}}