Skip to content

Commit e5f2984

Browse files
committed
fix npm install error
1 parent f7d14ce commit e5f2984

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ jobs:
3838
node-version: 22
3939
cache: "pnpm"
4040

41-
- name: Update npm for OIDC support
42-
run: npm install -g npm@latest # Needs 11.5.1+ for npm trusted publishing
43-
4441
- name: Install dependencies
4542
run: pnpm install --frozen-lockfile
4643

@@ -60,12 +57,14 @@ jobs:
6057
if: github.event_name == 'workflow_dispatch'
6158
id: version
6259
run: |
63-
npm version ${{ github.event.inputs.version_type }}
60+
pnpm version ${{ github.event.inputs.version_type }}
6461
echo "new_version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
6562
git push --follow-tags
6663
6764
- name: Publish to npm
6865
run: npm publish --provenance
66+
env:
67+
COREPACK_ENABLE_STRICT: 0
6968

7069
- name: Create GitHub release (manual trigger only)
7170
if: github.event_name == 'workflow_dispatch'

0 commit comments

Comments
 (0)