diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index d9caa72..3d8bae6 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -16,32 +16,24 @@ jobs: name: Node v${{ matrix.node }} test steps: - uses: actions/checkout@v2 - - uses: pnpm/action-setup@v2.0.1 - with: - version: 6.6.2 - uses: actions/setup-node@v2 with: node-version: ${{ matrix.node }} - cache: 'pnpm' - - run: pnpm i - - run: pnpm run build - - run: pnpm test + - uses: jaid/action-npm-install@v1.2.1 + - run: npm run build + - run: npm test publish-npm: needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: pnpm/action-setup@v2.0.1 - with: - version: 6.6.2 - uses: actions/setup-node@v2 with: node-version: '16' - cache: 'pnpm' registry-url: https://registry.npmjs.org/ - - run: pnpm i - - run: pnpm run build - - run: pnpm publish + - uses: jaid/action-npm-install@v1.2.1 + - run: npm run build + - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} \ No newline at end of file diff --git a/.github/workflows/npm-test.yml b/.github/workflows/npm-test.yml index aa50358..3d8601f 100644 --- a/.github/workflows/npm-test.yml +++ b/.github/workflows/npm-test.yml @@ -11,13 +11,9 @@ jobs: name: Node v${{ matrix.node }} test steps: - uses: actions/checkout@v2 - - uses: pnpm/action-setup@v2.0.1 - with: - version: 6.6.2 - uses: actions/setup-node@v2 with: node-version: ${{ matrix.node }} - cache: 'pnpm' - - run: pnpm i - - run: pnpm run build - - run: pnpm test \ No newline at end of file + - uses: jaid/action-npm-install@v1.2.1 + - run: npm run build + - run: npm test \ No newline at end of file