fix(ci): invoke pinned npm cli directly
This commit is contained in:
14
.github/workflows/manual-npm-publish.yml
vendored
14
.github/workflows/manual-npm-publish.yml
vendored
@@ -67,17 +67,17 @@ jobs:
|
|||||||
tool_dir="$RUNNER_TEMP/publish-npm"
|
tool_dir="$RUNNER_TEMP/publish-npm"
|
||||||
mkdir -p "$tool_dir"
|
mkdir -p "$tool_dir"
|
||||||
npm install --prefix "$tool_dir" "npm@${PUBLISH_NPM_VERSION}" --no-audit --no-fund
|
npm install --prefix "$tool_dir" "npm@${PUBLISH_NPM_VERSION}" --no-audit --no-fund
|
||||||
echo "$tool_dir/node_modules/npm/bin" >> "$GITHUB_PATH"
|
echo "PINNED_NPM_CLI=$tool_dir/node_modules/npm/bin/npm-cli.js" >> "$GITHUB_ENV"
|
||||||
"$tool_dir/node_modules/npm/bin/npm-cli.js" --version
|
node "$tool_dir/node_modules/npm/bin/npm-cli.js" --version
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci --workspaces
|
run: node "$PINNED_NPM_CLI" ci --workspaces
|
||||||
|
|
||||||
- name: Ensure rollup native binary
|
- name: Ensure rollup native binary
|
||||||
run: npm install @rollup/rollup-linux-x64-gnu --no-save
|
run: node "$PINNED_NPM_CLI" install @rollup/rollup-linux-x64-gnu --no-save
|
||||||
|
|
||||||
- name: Build server package (includes UI bundling)
|
- name: Build server package (includes UI bundling)
|
||||||
run: npm run build --workspace packages/server
|
run: node "$PINNED_NPM_CLI" run build --workspace packages/server
|
||||||
|
|
||||||
- name: Set publish metadata
|
- name: Set publish metadata
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -91,7 +91,7 @@ jobs:
|
|||||||
echo "PACKAGE_NAME=${{ inputs.package_name }}" >> "$GITHUB_ENV"
|
echo "PACKAGE_NAME=${{ inputs.package_name }}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Bump package version for publish
|
- name: Bump package version for publish
|
||||||
run: npm version ${VERSION} --workspaces --include-workspace-root --no-git-tag-version --allow-same-version
|
run: node "$PINNED_NPM_CLI" version ${VERSION} --workspaces --include-workspace-root --no-git-tag-version --allow-same-version
|
||||||
|
|
||||||
- name: Set server package name for publish
|
- name: Set server package name for publish
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -115,4 +115,4 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "Using NPM_TOKEN authentication"
|
echo "Using NPM_TOKEN authentication"
|
||||||
fi
|
fi
|
||||||
npm publish --workspace packages/server --access public --tag ${DIST_TAG} --provenance
|
node "$PINNED_NPM_CLI" publish --workspace packages/server --access public --tag ${DIST_TAG} --provenance
|
||||||
|
|||||||
Reference in New Issue
Block a user