Upgrade npm version in GitHub Actions workflow for trusted publishing
This commit is contained in:
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@@ -69,6 +69,8 @@ jobs:
|
|||||||
node-version: 22
|
node-version: 22
|
||||||
cache: "npm"
|
cache: "npm"
|
||||||
cache-dependency-path: package-lock.json
|
cache-dependency-path: package-lock.json
|
||||||
|
- name: Upgrade npm for trusted publishing
|
||||||
|
run: npm install -g npm@^11.5.1
|
||||||
- name: Check tag matches package version
|
- name: Check tag matches package version
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(node -p "require('./package.json').version")
|
VERSION=$(node -p "require('./package.json').version")
|
||||||
|
|||||||
Reference in New Issue
Block a user