Skip to content

Commit 58c0f2f

Browse files
committed
update build to delete local tags
1 parent b280e91 commit 58c0f2f

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ jobs:
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:

justfile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,18 @@ ci: test build check-dist
2121
sign-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
2727
release 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

0 commit comments

Comments
 (0)