@tahminator/pipeline 1.0.13 → 1.0.15

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.
@@ -1,7 +1,6 @@
1
1
  import yargs from "yargs";
2
2
  import { hideBin } from "yargs/helpers";
3
3
  import { NPMClient } from "../../npm";
4
- import { Utils } from "../../utils";
5
4
  const { dryRun } = await yargs(hideBin(process.argv))
6
5
  .option("dryRun", {
7
6
  type: "boolean",
@@ -10,20 +9,9 @@ const { dryRun } = await yargs(hideBin(process.argv))
10
9
  .strict()
11
10
  .parse();
12
11
  async function main() {
13
- const { npmToken } = parseCiEnv(await Utils.getEnvVariables(["ci"]));
14
- await using npmClient = await NPMClient.create(npmToken);
12
+ await using npmClient = await NPMClient.create();
15
13
  await npmClient.publish(dryRun);
16
14
  }
17
- function parseCiEnv(ciEnv) {
18
- const npmToken = (() => {
19
- const v = ciEnv["NPM_TOKEN"];
20
- if (!v) {
21
- throw new Error("Missing NPM_TOKEN from .env.ci");
22
- }
23
- return v;
24
- })();
25
- return { npmToken };
26
- }
27
15
  main()
28
16
  .then(() => {
29
17
  process.exit(0);
package/package.json CHANGED
@@ -3,9 +3,9 @@
3
3
  "type": "module",
4
4
  "author": "Tahmid Ahmed",
5
5
  "description": "A collection of Bun shell scripts that can be re-used in various CICD pipelines.",
6
- "version": "1.0.13",
6
+ "version": "1.0.15",
7
7
  "repository": {
8
- "url": "https://github.com/tahminator/pipeline"
8
+ "url": "git+https://github.com/tahminator/pipeline.git"
9
9
  },
10
10
  "main": "./dist/index.js",
11
11
  "module": "./dist/index.js",