-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/namespace-sync-state
* main: chore: update github action steps (#322) fix: fix mdns discovery (finally) (#323) chore: check npm lockfile version does not change (#321) chore: commit hooks for lint & package-lock chk (#320) feat: define sync capability per namespace (#319) feat: add namespace to peer pre-have messages (#314)
- Loading branch information
Showing
11 changed files
with
139 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Check Lockfile | ||
on: pull_request | ||
jobs: | ||
lockfile: | ||
name: Lockfile check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out a copy of the repo | ||
uses: actions/checkout@v4 | ||
- name: Check package-lock.json version has not been changed | ||
uses: mansona/npm-lockfile-version@v1 | ||
with: | ||
version: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Exit early if this was only a file checkout, not a branch change ($3 == 1) | ||
[ "$3" = 0 ] && exit 0 | ||
|
||
oldRef=$1 | ||
newRef=$2 | ||
|
||
|
||
changed() { | ||
git diff --name-only "$oldRef" "$newRef" | grep "^$1" > /dev/null 2>&1 | ||
} | ||
|
||
if changed 'package-lock.json'; then | ||
echo "📦 package-lock.json changed. Run npm install to bring your dependencies up to date." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env sh | ||
|
||
changed() { | ||
git diff --name-only HEAD@{1} HEAD | grep "^$1" > /dev/null 2>&1 | ||
} | ||
|
||
if changed 'package-lock.json'; then | ||
echo "📦 package-lock.json changed. Run npm install to bring your dependencies up to date." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.