diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 407b3c9..045dfbf 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,26 +11,17 @@ on: workflow_dispatch: jobs: - build: + build-and-publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 + registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm test - run: npm run build - - 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/ - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}