File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 # --- Artifact signing (mirrors auths/auths release workflow) ---
3535 - name : Install auths CLI
3636 run : |
37- curl -sL https://github.com/auths-dev/auths/releases/latest/download/auths-linux-x86_64.tar.gz | tar xz -C /usr/local/bin
37+ mkdir -p /tmp/auths-install
38+ curl -sL https://github.com/auths-dev/auths/releases/latest/download/auths-linux-x86_64.tar.gz | tar xz -C /tmp/auths-install
39+ sudo cp /tmp/auths-install/auths /usr/local/bin/auths
40+ rm -rf /tmp/auths-install
3841
3942 - name : Sign dist/index.js
4043 env :
Original file line number Diff line number Diff line change @@ -21,11 +21,18 @@ ci: test build check-dist
2121sign-dist :
2222 auths artifact sign dist/ index.js
2323
24- # Cut a release: bump version, commit, then tag+push via release script
24+ # Cut a release: bump version (if needed) , commit, then tag+push via release script
2525# The release workflow handles build verification, artifact signing, and GitHub release creation.
2626# Usage: just release 1.0.3
2727release VERSION : test build
28- npm version {{ VERSION}} --no-git-tag-version
29- git add package.json package-lock.json dist/ src/ .github/ justfile
30- git commit -m " build: bump version to {{ VERSION}} "
28+ #!/usr/bin/env bash
29+ set -euo pipefail
30+ CURRENT=$(node -p " require('./package.json').version" )
31+ if [ " $CURRENT" != " {{ VERSION}} " ]; then
32+ npm version {{ VERSION}} --no-git-tag-version
33+ git add package.json package-lock.json dist/ src/ .github/ justfile
34+ git commit -m " build: bump version to {{ VERSION}} "
35+ else
36+ echo " Version already {{ VERSION}} , skipping bump"
37+ fi
3138 python scripts/ release.py --push
You can’t perform that action at this time.
0 commit comments