From 6afe7808afc2eeb3d6b71cb686a03f556c63241a Mon Sep 17 00:00:00 2001 From: James Forbes Date: Thu, 7 Apr 2022 18:29:06 +1000 Subject: [PATCH] Release - v0.18.4 (#301) * Fix spread bug leading to vnull (#300) * Remove unnecessary (and incorrect) replace (#303) --- .github/workflows/rollback.yml | 2 +- .vscode/launch.json | 15 +++++++++++++++ lib/index.js | 7 ++----- templates/rollback.yml | 2 +- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rollback.yml b/.github/workflows/rollback.yml index 6eacb8a..f0afbc5 100644 --- a/.github/workflows/rollback.yml +++ b/.github/workflows/rollback.yml @@ -6,7 +6,7 @@ on: concurrency: prr:deploy jobs: - pr: + rollback: runs-on: ubuntu-latest diff --git a/.vscode/launch.json b/.vscode/launch.json index e984d93..82b62d2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -130,6 +130,21 @@ "args": ["rollback", "--target", "main", "--source", "next", "--verbose", "--ignore", "package*", "--ignore", "changelog.md"], "program": "${workspaceFolder}/bin.js" }, + { + "type": "pwa-node", + "request": "launch", + "name": "rollback:harth-mithril", + "skipFiles": [ + "/**" + ], + "env": { + "GITHUB_REPOSITORY":"harth-systems/mithril.js", + }, + "cwd": "/home/james/src/harth/mithril.js", + "envFile": "${workspaceFolder}/.env", + "args": ["rollback", "--target", "main", "--source", "next", "--verbose", "--ignore", "package*", "--ignore", "changelog.md"], + "program": "${workspaceFolder}/bin.js" + }, { "type": "pwa-node", "request": "launch", diff --git a/lib/index.js b/lib/index.js index d897feb..8a922e5 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1427,7 +1427,7 @@ async function rollback({ version, ignore=null }){ let level = prerelease ? ['prerelease', ...prerelease] - : 'patch' + : ['patch'] let newReleaseTag = semver.inc(currentReleaseTag, ...level) @@ -1437,10 +1437,7 @@ async function rollback({ version, ignore=null }){ ,tag_name: `v${newReleaseTag}` ,name: `v${newReleaseTag} - Rollback of ${currentReleaseTag}` ,target_commitish: target - ,body: ` - ${currentReleaseTag} was rolled back. - ` - .replace(/^ /gm, '') + ,body: `${currentReleaseTag} was rolled back.` }); revertSHA = commit.data.sha diff --git a/templates/rollback.yml b/templates/rollback.yml index a9c4496..1a5e10d 100644 --- a/templates/rollback.yml +++ b/templates/rollback.yml @@ -6,7 +6,7 @@ on: concurrency: prr:deploy jobs: - pr: + rollback: runs-on: ubuntu-latest