mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-14 02:10:07 +08:00
ci: ignore install scripts in release workflows (#1839)
This commit is contained in:
parent
71ed7c58d4
commit
33db548be3
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci --ignore-scripts
|
||||||
|
|
||||||
- name: Verify OpenCode package payload
|
- name: Verify OpenCode package payload
|
||||||
run: node tests/scripts/build-opencode.test.js
|
run: node tests/scripts/build-opencode.test.js
|
||||||
|
|||||||
2
.github/workflows/reusable-release.yml
vendored
2
.github/workflows/reusable-release.yml
vendored
@ -50,7 +50,7 @@ jobs:
|
|||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci --ignore-scripts
|
||||||
|
|
||||||
- name: Verify OpenCode package payload
|
- name: Verify OpenCode package payload
|
||||||
run: node tests/scripts/build-opencode.test.js
|
run: node tests/scripts/build-opencode.test.js
|
||||||
|
|||||||
@ -41,6 +41,10 @@ for (const workflow of [
|
|||||||
assert.match(content, /registry-url:\s*['"]https:\/\/registry\.npmjs\.org['"]/);
|
assert.match(content, /registry-url:\s*['"]https:\/\/registry\.npmjs\.org['"]/);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test(`${workflow} ignores dependency lifecycle scripts before privileged publish`, () => {
|
||||||
|
assert.match(content, /npm ci --ignore-scripts/);
|
||||||
|
});
|
||||||
|
|
||||||
test(`${workflow} checks whether the tagged npm version already exists`, () => {
|
test(`${workflow} checks whether the tagged npm version already exists`, () => {
|
||||||
assert.match(content, /Check npm publish state/);
|
assert.match(content, /Check npm publish state/);
|
||||||
assert.match(content, /npm view "\$\{PACKAGE_NAME\}@\$\{PACKAGE_VERSION\}" version/);
|
assert.match(content, /npm view "\$\{PACKAGE_NAME\}@\$\{PACKAGE_VERSION\}" version/);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user