Skip to content

Commit

Permalink
Release - v0.18.4 (#301)
Browse files Browse the repository at this point in the history
* Fix spread bug leading to vnull (#300)

* Remove unnecessary (and incorrect) replace (#303)
  • Loading branch information
JAForbes authored Apr 7, 2022
1 parent 0f63aaa commit 6afe780
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rollback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
concurrency: prr:deploy

jobs:
pr:
rollback:

runs-on: ubuntu-latest

Expand Down
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
"<node_internals>/**"
],
"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",
Expand Down
7 changes: 2 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ async function rollback({ version, ignore=null }){
let level =
prerelease
? ['prerelease', ...prerelease]
: 'patch'
: ['patch']

let newReleaseTag = semver.inc(currentReleaseTag, ...level)

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/rollback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
concurrency: prr:deploy

jobs:
pr:
rollback:

runs-on: ubuntu-latest

Expand Down

0 comments on commit 6afe780

Please sign in to comment.