mirror of
https://github.com/NomaDamas/k-skill.git
synced 2026-06-24 02:04:11 +00:00
Compare commits
2 commits
main
...
hotfix/rem
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e960afda0a | ||
|
|
116c145152 |
4 changed files with 10 additions and 13 deletions
1
.github/workflows/release-npm.yml
vendored
1
.github/workflows/release-npm.yml
vendored
|
|
@ -1,6 +1,7 @@
|
|||
name: Release npm packages
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
|
|
|||
|
|
@ -17,6 +17,10 @@ These rules are repo-specific and apply to everything under this directory.
|
|||
- For release or packaging changes, run `npm run ci`.
|
||||
- Keep release docs, workflow files, and package metadata aligned in the same change.
|
||||
|
||||
## Testing anti-patterns
|
||||
|
||||
- **Never write tests that assert `.changeset/*.md` files exist.** Changesets are consumed (deleted) by `changeset version` during the release flow. Any test guarding changeset file presence will break CI on the version-bump commit and block the release pipeline.
|
||||
|
||||
## Development skill install rules
|
||||
|
||||
- When testing or developing skills from this repository, install or sync the current skill directories into the user's home-directory global skill locations first.
|
||||
|
|
|
|||
5
CLAUDE.md
Normal file
5
CLAUDE.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# k-skill
|
||||
|
||||
## Testing anti-patterns
|
||||
|
||||
- **Never write tests that assert `.changeset/*.md` files exist.** Changesets are consumed (deleted) by `changeset version` during the release flow. Any test guarding changeset file presence will break CI on the version-bump commit and block the release pipeline.
|
||||
|
|
@ -998,19 +998,6 @@ test("pack:dry-run includes the toss-securities workspace", () => {
|
|||
assert.match(packageJson.scripts["pack:dry-run"], /workspace used-car-price-search/);
|
||||
});
|
||||
|
||||
test("used-car-price-search ships with a changeset for release automation", () => {
|
||||
const changesetDir = path.join(repoRoot, ".changeset");
|
||||
const changesetFiles = fs
|
||||
.readdirSync(changesetDir)
|
||||
.filter((name) => name.endsWith(".md"))
|
||||
.map((name) => read(path.join(".changeset", name)));
|
||||
|
||||
assert.ok(
|
||||
changesetFiles.some((doc) => /["']used-car-price-search["']:\s*(patch|minor|major)/.test(doc)),
|
||||
"expected a changeset entry that releases used-car-price-search",
|
||||
);
|
||||
});
|
||||
|
||||
test("package-lock captures the toss-securities workspace metadata for npm ci", () => {
|
||||
const packageLock = readJson("package-lock.json");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue