pipecraft 0.46.0 â 0.46.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.
package/README.md
CHANGED
|
@@ -59,6 +59,10 @@ reference, examples, and troubleshooting.
|
|
|
59
59
|
|
|
60
60
|
Working in this repo with an AI agent? See [AGENTS.md](AGENTS.md).
|
|
61
61
|
|
|
62
|
+
Developing Pipecraft itself: [CONTRIBUTING.md](./CONTRIBUTING.md) for setup and workflow,
|
|
63
|
+
[docs-dev/testing.md](./docs-dev/testing.md) for the testing approach, and
|
|
64
|
+
[docs-dev/ast-operations.md](./docs-dev/ast-operations.md) for how the generator edits YAML.
|
|
65
|
+
|
|
62
66
|
[](https://www.npmjs.com/package/pipecraft)
|
|
63
67
|
[](https://www.npmjs.com/package/pipecraft)
|
|
64
68
|
[](https://github.com/the-craftlab/pipecraft/blob/main/LICENSE)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-release.yml.tpl.d.ts","sourceRoot":"","sources":["../../../src/templates/actions/create-release.yml.tpl.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,KAAK,aAAa,EAA0B,MAAM,uBAAuB,CAAA;AAKlF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"create-release.yml.tpl.d.ts","sourceRoot":"","sources":["../../../src/templates/actions/create-release.yml.tpl.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,KAAK,aAAa,EAA0B,MAAM,uBAAuB,CAAA;AAKlF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,KAAK,GAAG,WA4I7C,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,KAAK,aAAa,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;CAAE,iBAgB/E,CAAA"}
|
|
@@ -108,9 +108,11 @@ export const releaseActionTemplate = (ctx) => {
|
|
|
108
108
|
RELEASE_ID=$(gh api repos/\${{ github.repository }}/releases/tags/$VERSION --jq '.id')
|
|
109
109
|
echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT
|
|
110
110
|
|
|
111
|
+
echo "release_created=true" >> $GITHUB_OUTPUT
|
|
111
112
|
echo "â
Release created successfully"
|
|
112
113
|
echo "đ URL: $RELEASE_URL"
|
|
113
114
|
elif echo "$RELEASE_OUTPUT" | grep -qiE 'already exists'; then
|
|
115
|
+
echo "release_created=false" >> $GITHUB_OUTPUT
|
|
114
116
|
# Idempotent re-run: the release for this version already exists. Treat as
|
|
115
117
|
# success and surface the existing release's URL/ID instead of failing.
|
|
116
118
|
echo "âšī¸ Release $VERSION already exists - treating as success (idempotent)."
|
|
@@ -125,7 +127,13 @@ export const releaseActionTemplate = (ctx) => {
|
|
|
125
127
|
exit 1
|
|
126
128
|
fi
|
|
127
129
|
|
|
130
|
+
# Only a release this run created gets a publish dispatch. The pipeline reaches this
|
|
131
|
+
# action once per push to the final branch, and a push that bumps nothing resolves to
|
|
132
|
+
# the version already released, so the step above takes its idempotent branch.
|
|
133
|
+
# Dispatching again publishes a version the registry already holds, which fails and
|
|
134
|
+
# reports a red X against a release that succeeded minutes earlier.
|
|
128
135
|
- name: Trigger Publish Workflow (if exists)
|
|
136
|
+
if: steps.create.outputs.release_created == 'true'
|
|
129
137
|
shell: bash
|
|
130
138
|
env:
|
|
131
139
|
GH_TOKEN: \${{ inputs.token }}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-release.yml.tpl.js","sourceRoot":"","sources":["../../../src/templates/actions/create-release.yml.tpl.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAsB,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AAA;IAE/B,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,CAAC;QACnC,MAAM,CAAC,OAAO,CAAC,kEAAkE,CAAC,CAAA;QAClF,OAAO,GAAG,CAAA;IACZ,CAAC;IAED,MAAM,SAAS,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAA;IAC5C,MAAM,QAAQ,GAAG,GAAG,SAAS,4BAA4B,CAAA;IACzD,MAAM,MAAM,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;IACtC,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,gBAAgB,CAAA;IACpE,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,IAAI,QAAQ,EAAE,CAAC,CAAA;IAEvC,OAAO,cAAc,CAAC,qBAAqB,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AACrE,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pipecraft",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.2",
|
|
4
4
|
"description": "Automated CI/CD pipeline generator for trunk-based development. Generates intelligent GitHub Actions workflows with domain-based change detection, semantic versioning, and branch flow management. Full documentation: https://pipecraft.thecraftlab.dev",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|