Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
push:
paths:
- 'package.json'
- '*/package.json'
- 'biome.json'
- '.npmrc'
branches:
- main
pull_request:
paths:
- 'package.json'
- '*/package.json'
- 'biome.json'
- '.npmrc'
branches:
Expand All @@ -33,4 +35,17 @@ jobs:
run: npm install -ws
- name: Run npm lint
run: npm run lint
# npm rejects a provenance publish when repository.url doesn't match the
# repo the release workflow runs in, so every package release.yml
# publishes has to name it
- name: Check published packages name this repository
run: |
status=0
for ws in aliases core fetchindex newest oldest parsefiles ranges static; do
if ! jq -e '.repository.url == "git+https://github.com/cutenode/nodevu.git"' "$ws/package.json" > /dev/null; then
echo "::error file=$ws/package.json::repository.url must be git+https://github.com/cutenode/nodevu.git"
status=1
fi
done
exit "$status"

4 changes: 4 additions & 0 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@
"@biomejs/biome": "2.5.15",
"c8": "^10.1.2",
"undici": "^6.20.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cutenode/nodevu.git"
}
}
4 changes: 4 additions & 0 deletions parsefiles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@
"devDependencies": {
"@biomejs/biome": "2.5.15",
"c8": "^10.1.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cutenode/nodevu.git"
}
}
Loading