diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index fb0140c..517ef71 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -8,19 +8,7 @@ on: types: [created] jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 20 - - run: yarn - - run: yarn test - - run: yarn build - publish-npm: - needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -28,6 +16,8 @@ jobs: with: node-version: 20 registry-url: https://registry.npmjs.org/ + - run: yarn + - run: yarn test - run: npm publish --public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}