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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rlsbl",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Release orchestration and project scaffolding for npm and PyPI",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -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
- commit_sha = args[0]
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: ${{ matrix.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
@@ -15,7 +15,7 @@ jobs:
15
15
  - uses: actions/checkout@v6
16
16
  - uses: actions/setup-node@v6
17
17
  with:
18
- node-version: 22
18
+ node-version: 24
19
19
  registry-url: https://registry.npmjs.org
20
20
  - run: npm publish --provenance --access public
21
21
  env:
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- node-version: [18, 20, 22]
14
+ node-version: [20, 22, 24]
15
15
  steps:
16
16
  - uses: actions/checkout@v6
17
17
  - uses: actions/setup-node@v6
@@ -15,7 +15,7 @@ jobs:
15
15
  - uses: actions/checkout@v6
16
16
  - uses: actions/setup-node@v6
17
17
  with:
18
- node-version: 22
18
+ node-version: 24
19
19
  registry-url: https://registry.npmjs.org
20
20
  - run: npm publish --provenance --access public
21
21
  env:
@@ -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."