rlsbl 0.8.2 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rlsbl/commands/watch.py +5 -2
- package/rlsbl/templates/go/ci.yml.tpl +2 -5
- package/rlsbl/templates/merged/publish.yml.tpl +1 -1
- package/rlsbl/templates/npm/ci.yml.tpl +1 -1
- package/rlsbl/templates/npm/publish.yml.tpl +1 -1
- package/rlsbl/templates/shared/hooks/pre-release.sh.tpl +5 -5
package/package.json
CHANGED
package/rlsbl/commands/watch.py
CHANGED
|
@@ -37,9 +37,12 @@ def run_cmd(registry, args, flags):
|
|
|
37
37
|
Defaults to HEAD if no commit SHA is provided.
|
|
38
38
|
"""
|
|
39
39
|
try:
|
|
40
|
-
# Get commit SHA
|
|
40
|
+
# Get commit SHA (resolve short SHAs -- gh requires full 40-char)
|
|
41
41
|
if args:
|
|
42
|
-
|
|
42
|
+
try:
|
|
43
|
+
commit_sha = run("git", ["rev-parse", args[0]])
|
|
44
|
+
except Exception:
|
|
45
|
+
commit_sha = args[0]
|
|
43
46
|
else:
|
|
44
47
|
try:
|
|
45
48
|
commit_sha = run("git", ["rev-parse", "HEAD"])
|
|
@@ -9,13 +9,10 @@ on:
|
|
|
9
9
|
jobs:
|
|
10
10
|
test:
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
|
-
strategy:
|
|
13
|
-
matrix:
|
|
14
|
-
go-version: ["1.22", "1.23", "1.24"]
|
|
15
12
|
steps:
|
|
16
13
|
- uses: actions/checkout@v6
|
|
17
14
|
- uses: actions/setup-go@v6
|
|
18
15
|
with:
|
|
19
|
-
go-version:
|
|
20
|
-
- run: go test ./...
|
|
16
|
+
go-version-file: go.mod
|
|
21
17
|
- run: go vet ./...
|
|
18
|
+
- run: go test ./... -race -short -timeout=10m
|
|
@@ -14,11 +14,6 @@ if [ -f go.mod ]; then
|
|
|
14
14
|
go test ./... -race -short -count=1
|
|
15
15
|
fi
|
|
16
16
|
|
|
17
|
-
if [ -f package.json ] && node -e "process.exit(require('./package.json').scripts?.test ? 0 : 1)" 2>/dev/null; then
|
|
18
|
-
echo " npm: test"
|
|
19
|
-
npm test
|
|
20
|
-
fi
|
|
21
|
-
|
|
22
17
|
if [ -f pyproject.toml ]; then
|
|
23
18
|
echo " Python: pytest"
|
|
24
19
|
if command -v uv &>/dev/null; then
|
|
@@ -28,4 +23,9 @@ if [ -f pyproject.toml ]; then
|
|
|
28
23
|
fi
|
|
29
24
|
fi
|
|
30
25
|
|
|
26
|
+
if [ -f package.json ] && node -e "process.exit(require('./package.json').scripts?.test ? 0 : 1)" 2>/dev/null; then
|
|
27
|
+
echo " npm: test"
|
|
28
|
+
npm test
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
31
|
echo "Pre-release checks passed."
|