@ankhorage/devtools 1.17.0 → 1.17.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 +1 -1
- package/dist/tools/workflows/files/release.yml +15 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# @ankhorage/devtools
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Shared tooling, repository automation, runtime policies, and agent standards for Ankhorage TypeScript projects
|
|
9
9
|
|
|
@@ -308,7 +308,6 @@ jobs:
|
|
|
308
308
|
|
|
309
309
|
- name: Create the scoped rollout token
|
|
310
310
|
id: rollout-token
|
|
311
|
-
if: needs.release.outputs.package_name == '@ankhorage/devtools'
|
|
312
311
|
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
|
|
313
312
|
with:
|
|
314
313
|
client-id: ${{ vars.ANKHORAGE_RENOVATE_SYNC_CLIENT_ID }}
|
|
@@ -317,29 +316,37 @@ jobs:
|
|
|
317
316
|
repositories: renovate
|
|
318
317
|
permission-contents: write
|
|
319
318
|
|
|
320
|
-
- name: Trigger the
|
|
321
|
-
if: needs.release.outputs.package_name == '@ankhorage/devtools'
|
|
319
|
+
- name: Trigger the package consumer rollout
|
|
322
320
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
|
|
323
321
|
env:
|
|
324
322
|
PUBLISHED_PACKAGE_NAME: ${{ needs.release.outputs.package_name }}
|
|
325
323
|
PUBLISHED_PACKAGE_VERSION: ${{ needs.release.outputs.package_version }}
|
|
324
|
+
PUBLISHED_SOURCE_REPOSITORY: ${{ github.repository }}
|
|
326
325
|
with:
|
|
327
326
|
github-token: ${{ steps.rollout-token.outputs.token }}
|
|
328
327
|
script: |
|
|
329
328
|
const release = {
|
|
330
329
|
name: process.env.PUBLISHED_PACKAGE_NAME,
|
|
331
330
|
version: process.env.PUBLISHED_PACKAGE_VERSION,
|
|
331
|
+
sourceRepository: process.env.PUBLISHED_SOURCE_REPOSITORY,
|
|
332
332
|
};
|
|
333
333
|
if (
|
|
334
|
-
release.name
|
|
335
|
-
!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(release.version)
|
|
334
|
+
!/^@ankhorage\/[a-z0-9][a-z0-9-]*$/.test(release.name ?? '') ||
|
|
335
|
+
!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(release.version ?? '') ||
|
|
336
|
+
!/^ankhorage\/[a-z0-9-]+$/.test(release.sourceRepository ?? '')
|
|
336
337
|
) {
|
|
337
|
-
throw new Error(
|
|
338
|
+
throw new Error(
|
|
339
|
+
'Changesets must report one exact published Ankhorage package identity.',
|
|
340
|
+
);
|
|
338
341
|
}
|
|
339
342
|
|
|
340
343
|
await github.rest.repos.createDispatchEvent({
|
|
341
344
|
owner: 'ankhorage',
|
|
342
345
|
repo: 'renovate',
|
|
343
|
-
event_type: '
|
|
344
|
-
client_payload: {
|
|
346
|
+
event_type: 'package-release',
|
|
347
|
+
client_payload: {
|
|
348
|
+
package_name: release.name,
|
|
349
|
+
version: release.version,
|
|
350
|
+
source_repository: release.sourceRepository,
|
|
351
|
+
},
|
|
345
352
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/devtools",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.2",
|
|
4
4
|
"description": "Shared tooling, repository automation, runtime policies, and agent standards for Ankhorage TypeScript projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/devtools#readme",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
]
|
|
47
47
|
},
|
|
48
48
|
"ankhorage": {
|
|
49
|
-
"renovateSyncProtocol":
|
|
49
|
+
"renovateSyncProtocol": 2
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"ankhorage",
|