diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 1a07cf5..e983193 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -8,7 +8,7 @@ on: types: [created] jobs: - build: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -17,10 +17,9 @@ jobs: node-version: 16 - run: npm ci - run: npm test - - run: npm run build publish-npm: - needs: build + needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -29,6 +28,7 @@ jobs: node-version: 16 registry-url: https://registry.npmjs.org/ - run: npm ci + - run: npm run build - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}}