diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6bae29a..033dde8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,13 +16,15 @@ jobs: with: version: 8 + - uses: actions/setup-node@v3 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + - name: Install run: pnpm install - - name: Build - run: pnpm build - - name: Publish - run: pnpm publish + run: pnpm publish --no-git-checks env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/package.json b/package.json index c98d253..d60c5e2 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "analytics" ], "scripts": { - "preinstall": "npx only-allow pnpm", "build": "del-cli dist && tsc", "prepublishOnly": "pnpm build", "lint": "eslint src --fix --max-warnings 0",