diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 2cf84b0..390b9ad 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -40,11 +40,11 @@ jobs: version: 9.5 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} env: + node-version: ${{ matrix.node-version }} NODE_ENV: production NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}} + registry-url: 'https://registry.npmjs.org' - run: pnpm install - run: echo "publishing version ${{ env.RELEASE_VERSION }}" - run: pnpm version ${{ env.RELEASE_VERSION }} diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index 61e1686..43a9354 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -18,9 +18,9 @@ jobs: version: 9.5 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} env: + node-version: ${{ matrix.node-version }} + registry-url: 'https://registry.npmjs.org' NODE_ENV: production NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}} - run: pnpm install -r @@ -28,3 +28,8 @@ jobs: - run: pnpm run test - run: pnpm run build - run: pnpm run dry-run + env: + node-version: ${{ matrix.node-version }} + registry-url: 'https://registry.npmjs.org' + NODE_ENV: production + NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}