@acidgreen-au/ag-cicd-cli 0.0.2 → 0.0.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.
- package/README.md +3 -3
- package/dist/cli.mjs +10 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# ag-cicd-cli
|
|
1
|
+
# @acidgreen-au/ag-cicd-cli
|
|
2
2
|
|
|
3
3
|
CLI tools for Acidgreen CI/CD workflows. Provides commands for Shopify theme deployment, code quality checks, environment validation, and git automation.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
pnpm install -g ag-cicd-cli
|
|
8
|
+
pnpm install -g @acidgreen-au/ag-cicd-cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Or use directly with npx:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
pnpx ag-cicd-cli <command>
|
|
14
|
+
pnpx @acidgreen-au/ag-cicd-cli <command>
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
package/dist/cli.mjs
CHANGED
|
@@ -28,7 +28,16 @@ Examples:
|
|
|
28
28
|
$ ag check-tag --create
|
|
29
29
|
$ ag check-tag --create --push
|
|
30
30
|
$ ag check-tag --create --push --remote origin
|
|
31
|
-
$ ag check-tag --prefix release
|
|
31
|
+
$ ag check-tag --prefix release-
|
|
32
|
+
|
|
33
|
+
GitLab CI/CD Authentication:
|
|
34
|
+
To push tags from GitLab CI/CD, you need to authenticate with the remote.
|
|
35
|
+
|
|
36
|
+
Create a token with write_repository scope in Settings > Access Tokens,
|
|
37
|
+
then add it as a masked CI/CD variable (e.g., GITLAB_TOKEN).
|
|
38
|
+
|
|
39
|
+
$ ag check-tag --create --push \\
|
|
40
|
+
--remote "https://oauth2:\${GITLAB_TOKEN}@\${CI_SERVER_HOST}/\${CI_PROJECT_PATH}.git"`;
|
|
32
41
|
function register$9(program$1) {
|
|
33
42
|
program$1.command("check-tag").description("Check if git tag exists for package.json version").addHelpText("after", helpText$9).option("-p, --package-path <path>", "Path to package.json", "package.json").option("--prefix <prefix>", "Tag prefix", "v").option("-c, --create", "Create the tag if it doesn't exist").option("--push", "Push the tag to remote (requires --create)").option("-r, --remote <remote>", "Remote to push to", "origin").action(checkTagCommand);
|
|
34
43
|
}
|