@mannyc1/ts-release 0.2.2 → 0.3.0
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/ARCHITECTURE.md +60 -0
- package/CHANGELOG.md +82 -0
- package/README.md +129 -6
- package/SPEC.md +51 -0
- package/apps/release-ts/README.md +7 -0
- package/apps/ts-release-agents/package.json +1 -1
- package/apps/ts-release-agents/src/check.ts +7 -2
- package/apps/ts-release-agents/test/contract.test.ts +2 -2
- package/dist/bin/ts-release.js +154 -47
- package/dist/drivers/archive.d.ts +2 -1
- package/dist/drivers/archive.d.ts.map +1 -1
- package/dist/drivers/archive.js +12 -8
- package/dist/drivers/archive.js.map +1 -1
- package/dist/drivers/process.d.ts.map +1 -1
- package/dist/drivers/process.js +4 -4
- package/dist/drivers/process.js.map +1 -1
- package/dist/drivers/python-wheel.d.ts +21 -0
- package/dist/drivers/python-wheel.d.ts.map +1 -0
- package/dist/drivers/python-wheel.js +109 -0
- package/dist/drivers/python-wheel.js.map +1 -0
- package/dist/drivers/workspace.d.ts +3 -0
- package/dist/drivers/workspace.d.ts.map +1 -1
- package/dist/drivers/workspace.js +5 -1
- package/dist/drivers/workspace.js.map +1 -1
- package/dist/operation-journal/authority.d.ts +3 -0
- package/dist/operation-journal/authority.d.ts.map +1 -0
- package/dist/operation-journal/authority.js +147 -0
- package/dist/operation-journal/authority.js.map +1 -0
- package/dist/operation-journal/aws/deadline.d.ts +12 -0
- package/dist/operation-journal/aws/deadline.d.ts.map +1 -0
- package/dist/operation-journal/aws/deadline.js +38 -0
- package/dist/operation-journal/aws/deadline.js.map +1 -0
- package/dist/operation-journal/aws/oidc.d.ts +27 -0
- package/dist/operation-journal/aws/oidc.d.ts.map +1 -0
- package/dist/operation-journal/aws/oidc.js +361 -0
- package/dist/operation-journal/aws/oidc.js.map +1 -0
- package/dist/operation-journal/aws/policy.d.ts +42 -0
- package/dist/operation-journal/aws/policy.d.ts.map +1 -0
- package/dist/operation-journal/aws/policy.js +404 -0
- package/dist/operation-journal/aws/policy.js.map +1 -0
- package/dist/operation-journal/aws/s3-boundary.d.ts +17 -0
- package/dist/operation-journal/aws/s3-boundary.d.ts.map +1 -0
- package/dist/operation-journal/aws/s3-boundary.js +417 -0
- package/dist/operation-journal/aws/s3-boundary.js.map +1 -0
- package/dist/operation-journal/aws.d.ts +11 -0
- package/dist/operation-journal/aws.d.ts.map +1 -0
- package/dist/operation-journal/aws.js +50 -0
- package/dist/operation-journal/aws.js.map +1 -0
- package/dist/operation-journal/canonical.d.ts +52 -0
- package/dist/operation-journal/canonical.d.ts.map +1 -0
- package/dist/operation-journal/canonical.js +282 -0
- package/dist/operation-journal/canonical.js.map +1 -0
- package/dist/operation-journal/model.d.ts +251 -0
- package/dist/operation-journal/model.d.ts.map +1 -0
- package/dist/operation-journal/model.js +56 -0
- package/dist/operation-journal/model.js.map +1 -0
- package/dist/operation-journal/reducer.d.ts +28 -0
- package/dist/operation-journal/reducer.d.ts.map +1 -0
- package/dist/operation-journal/reducer.js +73 -0
- package/dist/operation-journal/reducer.js.map +1 -0
- package/dist/operation-journal/s3.d.ts +7 -0
- package/dist/operation-journal/s3.d.ts.map +1 -0
- package/dist/operation-journal/s3.js +667 -0
- package/dist/operation-journal/s3.js.map +1 -0
- package/dist/operation-journal.d.ts +14 -0
- package/dist/operation-journal.d.ts.map +1 -0
- package/dist/operation-journal.js +12 -0
- package/dist/operation-journal.js.map +1 -0
- package/dist/platform/credentials.d.ts.map +1 -1
- package/dist/platform/credentials.js +65 -3
- package/dist/platform/credentials.js.map +1 -1
- package/dist/publication/github.d.ts.map +1 -1
- package/dist/publication/github.js +66 -15
- package/dist/publication/github.js.map +1 -1
- package/dist/release/capabilities.d.ts.map +1 -1
- package/dist/release/capabilities.js +2 -2
- package/dist/release/capabilities.js.map +1 -1
- package/dist/release/prepare.d.ts.map +1 -1
- package/dist/release/prepare.js +4 -5
- package/dist/release/prepare.js.map +1 -1
- package/dist/release/prepared-store.d.ts.map +1 -1
- package/dist/release/prepared-store.js +11 -9
- package/dist/release/prepared-store.js.map +1 -1
- package/package.json +19 -4
- package/src/drivers/archive.ts +17 -8
- package/src/drivers/process.ts +3 -4
- package/src/drivers/python-wheel.ts +145 -0
- package/src/drivers/workspace.ts +7 -1
- package/src/operation-journal/authority.ts +162 -0
- package/src/operation-journal/aws/deadline.ts +41 -0
- package/src/operation-journal/aws/oidc.ts +439 -0
- package/src/operation-journal/aws/policy.ts +491 -0
- package/src/operation-journal/aws/s3-boundary.ts +562 -0
- package/src/operation-journal/aws.ts +60 -0
- package/src/operation-journal/canonical.ts +373 -0
- package/src/operation-journal/model.ts +301 -0
- package/src/operation-journal/reducer.ts +112 -0
- package/src/operation-journal/s3.ts +884 -0
- package/src/operation-journal.ts +51 -0
- package/src/platform/credentials.ts +71 -3
- package/src/publication/github.ts +83 -15
- package/src/release/capabilities.ts +3 -2
- package/src/release/prepare.ts +3 -5
- package/src/release/prepared-store.ts +8 -7
- package/templates/README.md +2 -2
- package/templates/github-actions/release.yml +24 -7
- package/templates/github-actions/reviewed-release.yml +49 -14
|
@@ -14,32 +14,50 @@ permissions:
|
|
|
14
14
|
jobs:
|
|
15
15
|
prepare:
|
|
16
16
|
if: ${{ github.ref == 'refs/heads/main' && github.sha == inputs.candidate_sha }}
|
|
17
|
-
runs-on: ubuntu-
|
|
17
|
+
runs-on: ubuntu-24.04
|
|
18
18
|
outputs:
|
|
19
19
|
prepared-ref: ${{ steps.prepare.outputs.prepared-ref }}
|
|
20
20
|
steps:
|
|
21
|
-
- uses: actions/checkout@v4
|
|
21
|
+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
22
22
|
with:
|
|
23
23
|
persist-credentials: false
|
|
24
|
-
-
|
|
24
|
+
- id: setup-node
|
|
25
|
+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
25
26
|
with:
|
|
26
27
|
node-version: "22.22.2"
|
|
27
|
-
-
|
|
28
|
+
- id: setup-bun
|
|
29
|
+
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
|
28
30
|
with:
|
|
29
31
|
bun-version: "1.3.14"
|
|
30
|
-
-
|
|
32
|
+
- id: release-tools
|
|
33
|
+
name: Bind exact release tool paths
|
|
34
|
+
env:
|
|
35
|
+
SETUP_BUN_PATH: ${{ steps.setup-bun.outputs.bun-path }}
|
|
36
|
+
run: |-
|
|
37
|
+
node_path="$(type -P node)"
|
|
38
|
+
bun_path="$(type -P bun)"
|
|
39
|
+
[[ "$node_path" = /* && "$bun_path" = /* ]]
|
|
40
|
+
[[ "$("$node_path" --version)" == v22.22.2 ]]
|
|
41
|
+
[[ "$("$bun_path" --version)" == 1.3.14 ]]
|
|
42
|
+
[[ "$(realpath "$bun_path")" == "$(realpath "$SETUP_BUN_PATH")" ]]
|
|
43
|
+
echo "node-bin=$node_path" >> "$GITHUB_OUTPUT"
|
|
44
|
+
echo "bun-bin=$bun_path" >> "$GITHUB_OUTPUT"
|
|
45
|
+
- run: bun add --global npm@11.11.0
|
|
31
46
|
- name: Prime isolated Bun dependency cache
|
|
32
47
|
run: |-
|
|
33
48
|
bun install --frozen-lockfile --ignore-scripts --no-save --linker=hoisted
|
|
34
49
|
bun --no-env-file --no-install -e 'await (await import("node:fs/promises")).rm("node_modules", { recursive: true, force: true })'
|
|
35
50
|
- id: prepare
|
|
36
|
-
uses: mannyc2/ts-release/apps/ts-release-action@v0.
|
|
51
|
+
uses: mannyc2/ts-release/apps/ts-release-action@v0.3.0
|
|
52
|
+
env:
|
|
53
|
+
TS_RELEASE_NODE_BIN: ${{ steps.release-tools.outputs.node-bin }}
|
|
54
|
+
TS_RELEASE_BUN_BIN: ${{ steps.release-tools.outputs.bun-bin }}
|
|
37
55
|
with:
|
|
38
56
|
command: prepare
|
|
39
57
|
config: reviewed-release.config.json
|
|
40
58
|
- name: Upload redacted preparation report
|
|
41
59
|
if: ${{ always() && steps.prepare.outputs.report-ref != '' }}
|
|
42
|
-
uses: actions/upload-artifact@v4
|
|
60
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
43
61
|
with:
|
|
44
62
|
name: ts-release-prepare-report-${{ github.run_attempt }}
|
|
45
63
|
path: ${{ steps.prepare.outputs.report-ref }}
|
|
@@ -48,32 +66,49 @@ jobs:
|
|
|
48
66
|
publish:
|
|
49
67
|
if: ${{ github.ref == 'refs/heads/main' && github.sha == inputs.candidate_sha }}
|
|
50
68
|
needs: prepare
|
|
51
|
-
runs-on: ubuntu-
|
|
69
|
+
runs-on: ubuntu-24.04
|
|
52
70
|
environment: release
|
|
53
71
|
permissions:
|
|
54
72
|
contents: write
|
|
55
73
|
id-token: write
|
|
56
74
|
steps:
|
|
57
|
-
- uses: actions/checkout@v4
|
|
75
|
+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
58
76
|
with:
|
|
59
77
|
persist-credentials: false
|
|
60
|
-
-
|
|
78
|
+
- id: setup-node
|
|
79
|
+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
61
80
|
with:
|
|
62
81
|
node-version: "22.22.2"
|
|
63
|
-
-
|
|
82
|
+
- id: setup-bun
|
|
83
|
+
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
|
64
84
|
with:
|
|
65
85
|
bun-version: "1.3.14"
|
|
66
|
-
-
|
|
86
|
+
- id: release-tools
|
|
87
|
+
name: Bind exact release tool paths
|
|
88
|
+
env:
|
|
89
|
+
SETUP_BUN_PATH: ${{ steps.setup-bun.outputs.bun-path }}
|
|
90
|
+
run: |-
|
|
91
|
+
node_path="$(type -P node)"
|
|
92
|
+
bun_path="$(type -P bun)"
|
|
93
|
+
[[ "$node_path" = /* && "$bun_path" = /* ]]
|
|
94
|
+
[[ "$("$node_path" --version)" == v22.22.2 ]]
|
|
95
|
+
[[ "$("$bun_path" --version)" == 1.3.14 ]]
|
|
96
|
+
[[ "$(realpath "$bun_path")" == "$(realpath "$SETUP_BUN_PATH")" ]]
|
|
97
|
+
echo "node-bin=$node_path" >> "$GITHUB_OUTPUT"
|
|
98
|
+
echo "bun-bin=$bun_path" >> "$GITHUB_OUTPUT"
|
|
99
|
+
- run: bun add --global npm@11.11.0
|
|
67
100
|
- id: publish
|
|
68
|
-
uses: mannyc2/ts-release/apps/ts-release-action@v0.
|
|
101
|
+
uses: mannyc2/ts-release/apps/ts-release-action@v0.3.0
|
|
69
102
|
env:
|
|
70
103
|
GITHUB_TOKEN: ${{ github.token }}
|
|
104
|
+
TS_RELEASE_NODE_BIN: ${{ steps.release-tools.outputs.node-bin }}
|
|
105
|
+
TS_RELEASE_BUN_BIN: ${{ steps.release-tools.outputs.bun-bin }}
|
|
71
106
|
with:
|
|
72
107
|
command: publish
|
|
73
108
|
prepared: ${{ needs.prepare.outputs.prepared-ref }}
|
|
74
109
|
- name: Upload redacted publication report
|
|
75
110
|
if: ${{ always() && steps.publish.outputs.report-ref != '' }}
|
|
76
|
-
uses: actions/upload-artifact@v4
|
|
111
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
77
112
|
with:
|
|
78
113
|
name: ts-release-publish-report-${{ github.run_attempt }}
|
|
79
114
|
path: ${{ steps.publish.outputs.report-ref }}
|