zarro 1.180.1 → 1.180.3

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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ (function () {
3
+ const gulp = requireModule("gulp");
4
+ gulp.task("auto-release-nuget", async () => {
5
+ const env = requireModule("env"), log = requireModule("log"), { runTask } = requireModule("run-task"), Git = require("simple-git"), git = Git("."), branchInfo = await git.branch(), mainBranch = env.resolve(env.GIT_MAIN_BRANCH);
6
+ if (branchInfo.current !== mainBranch) {
7
+ log.info(`auto-releasing beta package: current branch is ${branchInfo.current} and main branch is ${mainBranch}`);
8
+ process.env["BETA"] = "1";
9
+ }
10
+ await runTask("release-nuget");
11
+ });
12
+ })();
@@ -6,7 +6,7 @@
6
6
  env.NUGET_SOURCE
7
7
  ], taskName);
8
8
  gulp.task(taskName, ["clear-packages-folder", "pack"], async () => {
9
- const log = requireModule("log"), Git = require("simple-git"), git = new Git("."), ZarroError = requireModule("zarro-error"), resolveNugetApiKey = requireModule("resolve-nuget-api-key"), { FsEntities, ls } = require("yafs"), { nugetPush } = requireModule("dotnet-cli"), packageDir = env.resolve(env.PACK_TARGET_FOLDER), packageFiles = await ls(packageDir, {
9
+ const { ctx } = require("exec-step"), log = requireModule("log"), Git = require("simple-git"), git = new Git("."), ZarroError = requireModule("zarro-error"), resolveNugetApiKey = requireModule("resolve-nuget-api-key"), { FsEntities, ls } = require("yafs"), { nugetPush } = requireModule("dotnet-cli"), packageDir = env.resolve(env.PACK_TARGET_FOLDER), packageFiles = await ls(packageDir, {
10
10
  fullPaths: true,
11
11
  recurse: false,
12
12
  entities: FsEntities.files,
@@ -27,11 +27,11 @@
27
27
  log.info(`DRY_RUN: would have pushed '${pkg}' to '${source}'`);
28
28
  }
29
29
  else {
30
- await nugetPush({
30
+ await ctx.exec(`Pushing ${pkg} to ${source}`, async () => await nugetPush({
31
31
  source,
32
32
  target: pkg,
33
33
  apiKey: await resolveNugetApiKey(source)
34
- });
34
+ }));
35
35
  }
36
36
  }
37
37
  if (!version) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.180.1",
3
+ "version": "1.180.3",
4
4
  "description": "Some glue to make gulp easier, perhaps even zero- or close-to-zero-conf",
5
5
  "bin": {
6
6
  "zarro": "index.js"