diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 182c48c..c8932e1 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,7 +1,7 @@ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages -name: NpmJS Publish Bot +name: Node.js Package on: release: @@ -15,9 +15,8 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 - - run: npm ci - - run: npm test - + - run: yarn install + - run: yarn build publish-npm: needs: build runs-on: ubuntu-latest @@ -27,8 +26,6 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org/ - - run: yarn install - - run: npm run build - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}