git-stack-cli 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34332,7 +34332,7 @@ async function command() {
34332
34332
  .wrap(140)
34333
34333
  // disallow unknown options
34334
34334
  .strict()
34335
- .version("1.2.1" )
34335
+ .version("1.2.2" )
34336
34336
  .showHidden("show-hidden", "Show hidden options via `git stack help --show-hidden`")
34337
34337
  .help("help", "Show usage via `git stack help`").argv);
34338
34338
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-stack-cli",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "",
5
5
  "author": "magus",
6
6
  "license": "MIT",
@@ -56,6 +56,13 @@ await file.write_text(
56
56
 
57
57
  process.chdir(PROJECT_DIR);
58
58
 
59
+ // download github asset and calculate sha256
60
+ // prettier-ignore
61
+ await spawn.sync(["gh", "release", "download", version, "-p", `git-stack-cli-${version}.tgz`]);
62
+ // prettier-ignore
63
+ const tarball_asset = await create_asset(`git-stack-cli-${version}.tgz`, { version });
64
+ await file.rm(tarball_asset.filepath);
65
+
59
66
  await spawn(`npm run build:standalone`);
60
67
 
61
68
  process.chdir(STANDALONE_DIR);
@@ -86,12 +93,6 @@ await file.write_text(path.join("Formula", "git-stack.rb"), tap);
86
93
 
87
94
  // homebrew/core formula (build from source)
88
95
 
89
- // download github asset and calculate sha256
90
- // prettier-ignore
91
- await spawn.sync(`gh release download ${version} -p "git-stack-cli-${version}.tgz"`);
92
- // prettier-ignore
93
- const tarball_asset = await create_asset(`git-stack-cli-${version}.tgz`, { version });
94
-
95
96
  let core = await file.read_text(
96
97
  path.join("templates", "git-stack.core.rb.template")
97
98
  );
@@ -101,8 +102,6 @@ core = core.replace(re_token("tarball_sha256"), tarball_asset.sha256);
101
102
 
102
103
  await file.write_text(path.join("Formula", "git-stack.core.rb"), core);
103
104
 
104
- await file.rm(tarball_asset.filepath);
105
-
106
105
  // finally upload the assets to the github release
107
106
  process.chdir(STANDALONE_DIR);
108
107
  await spawn.sync(`gh release upload ${version} ${linux_asset.filepath}`);
@@ -117,13 +116,8 @@ await spawn.sync(`git push`);
117
116
 
118
117
  // commmit changes to main repo
119
118
  process.chdir(PROJECT_DIR);
120
- await spawn.sync([
121
- "git",
122
- "commit",
123
- "-a",
124
- "-m",
125
- `homebrew-git-stack ${version}`,
126
- ]);
119
+ // prettier-ignore
120
+ await spawn.sync(["git", "commit", "-a", "-m", `homebrew-git-stack ${version}`]);
127
121
  await spawn.sync(`git push`);
128
122
 
129
123
  console.debug();