diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index d4cfa36..03910c0 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -24,10 +24,14 @@ runs: path: node_modules key: node-modules-${{ hashFiles('pnpm-lock.yaml') }} - - name: Set publishing config + - name: Set github config run: pnpm config set '//npm.pkg.github.com/:_authToken' "${NODE_AUTH_TOKEN}" shell: bash + - name: Set npm config + run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" + shell: bash + - name: Install dependencies if: steps.node-modules.cache-hit != 'true' run: pnpm install --frozen-lockfile diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index db705a7..b076f9a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,9 +12,4 @@ jobs: steps: - uses: actions/checkout@v3 - uses: ./.github/actions/install - - name: Setup Node - uses: actions/setup-node@v2 - with: - node-version: '20' - registry-url: 'https://registry.npmjs.org' - run: pnpm publish --no-git-checks