Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

Correct release version to 0.1.5 (#568)

Joshua Franced931fe963de3
diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml
index 67bee9ddb..6c27380cf 100644
--- a/.github/workflows/cicd.yml
+++ b/.github/workflows/cicd.yml
@@ -112,7 +112,10 @@ jobs:
base_version=$(git show "${base}:cli/package.json" | jq -r .version)
head_version=$(git show "${HEAD_SHA}:cli/package.json" | jq -r .version)
highest=$(printf '%s\n%s\n' "$base_version" "$head_version" | sort -V | tail -1)
- if [ "$base_version" = "$head_version" ] || [ "$highest" != "$head_version" ]; then
+ correction_files=$(printf '%s\n' "$changed" | sort)
+ expected_correction_files=$(printf '%s\n' cli/package-lock.json cli/package.json)
+ if { [ "$base_version:$head_version" != "1.0.5:0.1.5" ] || [ "$correction_files" != "$expected_correction_files" ]; } &&
+ { [ "$base_version" = "$head_version" ] || [ "$highest" != "$head_version" ]; }; then
printf '%s\n' "$changed" >&2
echo "these files ship in @yc-software/qm; bump cli/package.json past $base_version" >&2
exit 1
diff --git a/.github/workflows/publish-cli.yml b/.github/workflows/publish-cli.yml
index 9acf92139..e72eb56e0 100644
--- a/.github/workflows/publish-cli.yml
+++ b/.github/workflows/publish-cli.yml
@@ -89,8 +89,11 @@ jobs:
exit 1
fi
echo "@yc-software/qm@$version is already on npm pinning these digests; keeping it"
- exit 0
+ else
+ npm publish --provenance --access public
+ fi
+ if [ "$version" = 0.1.5 ]; then
+ npm deprecate @yc-software/[email protected] "Published with an incorrect version number; use 0.1.5."
fi
- npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/cli/package-lock.json b/cli/package-lock.json
index 283fdc318..6a1229211 100644
--- a/cli/package-lock.json
+++ b/cli/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@yc-software/qm",
- "version": "1.0.5",
+ "version": "0.1.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@yc-software/qm",
- "version": "1.0.5",
+ "version": "0.1.5",
"license": "MIT",
"bin": {
"qm": "dist/bin/qm.js"
diff --git a/cli/package.json b/cli/package.json
index 21add991a..d7349677a 100644
--- a/cli/package.json
+++ b/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@yc-software/qm",
- "version": "1.0.5",
+ "version": "0.1.5",
"license": "MIT",
"description": "Control-plane CLI for portable QM deployments on Docker, Fly, and AWS.",
"type": "module",