@noldova/tools.pipelines.github 0.0.4 → 0.0.5

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.
package/README.md CHANGED
@@ -16,7 +16,7 @@ npm install @noldova/tools.pipelines.github
16
16
  A job installs the package at an exact version, without install scripts, and calls `pipelines` with a step's name and values in the checkout:
17
17
 
18
18
  ```yaml
19
- - run: npm install --global --ignore-scripts @noldova/tools.pipelines.github@0.0.4
19
+ - run: npm install --global --ignore-scripts @noldova/tools.pipelines.github@0.0.5
20
20
  - run: pipelines source "$VERSION" "$COMMIT"
21
21
  - id: nightly
22
22
  run: |
@@ -95,6 +95,9 @@ It runs in a checkout of the released commit, and reads `GITHUB_API_URL`, `GITHU
95
95
  It needs to write their contents, pull requests and issues, and is never written anywhere: git gets it through its environment, not its command line.
96
96
  - The workflow sets the commits' author and committer, such as the App's bot account, through git's environment.
97
97
  - npm refreshes each repository's lock files from the registries that repository names, without `GITHUB_TOKEN`; one that needs a token to read gets it from the workflow, as for an install.
98
+ - The pins a released package needs as exact peers move with it, in the same pull request; a repository whose lock files hold a package that needs a moved package at another exact version, before or after the refresh, is left as it is, with a line that names that package.
99
+ - The step prints each repository's line as soon as that repository is done, a failed one as an error, so a job stopped by its time limit still shows the repositories it finished; its last line is the summary.
100
+ - A lock refresh that runs longer than 5 minutes is stopped and fails that repository, on Linux and macOS runners only.
98
101
  - The release notes are the section of the pull request whose merge commit is the commit, headed `Release notes for <version>`; without one, the proposal has none.
99
102
  - When the branch exists, the step replaces it, with `--force-with-lease`, only while it is at a commit of the step's own; then it updates the open pull request and its issue. Otherwise it opens an issue and a pull request that closes it, against the repository's default branch.
100
103
  - The step fails, naming the variable, when one is missing or empty; it fails for a repository, after trying every other, with git's exit code and error output, or with the request, the status and GitHub's message for an answer it doesn't expect.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noldova/tools.pipelines.github",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "main": "api/index.js",
6
6
  "types": "api/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@noldova/context.json": "0.0.3",
26
- "@noldova/tools.pipelines": "0.0.4"
26
+ "@noldova/tools.pipelines": "0.0.5"
27
27
  },
28
- "gitHead": "8b73b47be62290320cce3676c43fb7db771892c9"
28
+ "gitHead": "5777af26bf7b39f7aee2de035cb8cec525027e13"
29
29
  }
@@ -20,7 +20,7 @@ export class PipelinesProgram {
20
20
  const git = new Git(processRunner, process.cwd());
21
21
  const npm = new Npm(processRunner, process.cwd());
22
22
  const archiveStep = new ArchiveStep(git, new Tar(processRunner));
23
- const steps = [new SourceStep(git), archiveStep, new PublishStep(archiveStep, npm), new NightlyStep(git, archiveStep, npm), new PruneStep(git, archiveStep, new GitHubPackages(process.env)), new TagStep(new GitHubTags(process.env)), new ToolchainStep(npm, process.version), new LineEndingsStep(git), new UnchangedStep(git), new ReproducibleStep(git, npm, process.env[Resources.runnerTemporaryVariable]), new DependentsStep(archiveStep, new GitHubUpdates(process.env, processRunner), processRunner, npm, process.env[Resources.runnerTemporaryVariable])];
23
+ const steps = [new SourceStep(git), archiveStep, new PublishStep(archiveStep, npm), new NightlyStep(git, archiveStep, npm), new PruneStep(git, archiveStep, new GitHubPackages(process.env)), new TagStep(new GitHubTags(process.env)), new ToolchainStep(npm, process.version), new LineEndingsStep(git), new UnchangedStep(git), new ReproducibleStep(git, npm, process.env[Resources.runnerTemporaryVariable]), new DependentsStep(archiveStep, new GitHubUpdates(process.env, processRunner), processRunner, npm, process.env[Resources.runnerTemporaryVariable], this.output)];
24
24
  return new CommandLine(Resources.programName, steps, this.output).runAsync(values);
25
25
  }
26
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pipelines-program.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines.github/src/services/pipelines-program.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO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,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,aAAa,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,IAAI,aAAa,CAAC,GAAG,CAAC,EAAE,IAAI,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC,EAAE,IAAI,cAAc,CAAC,WAAW,EAAE,IAAI,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,aAAa,CAAC,EAAE,aAAa,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;QAEviB,OAAO,IAAI,WAAW,CAAC,SAAS,CAAC,WAAW,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACrF,CAAC;CACF"}
1
+ {"version":3,"file":"pipelines-program.js","sourceRoot":"","sources":["../../../../src/noldova.tools.pipelines.github/src/services/pipelines-program.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,EAAoB,eAAe,EAAE,WAAW,EAAE,GAAG,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE/P,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,OAAO,gBAAgB;IACV,MAAM,CAAc;IAErC,YAAmB,MAAmB;QAC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