@ankhorage/devtools 1.10.14 → 1.10.16

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
@@ -296,9 +296,9 @@ The canonical Bun policy is defined once in devtools and consumed by both packag
296
296
  <!-- devtools-bun-policy:start -->
297
297
 
298
298
  ```text
299
- Bun runtime 1.4.0
300
- packageManager bun@1.4.0
301
- @types/bun ^1.4.0
299
+ Bun runtime 1.4.1
300
+ packageManager bun@1.4.1
301
+ @types/bun ^1.4.1
302
302
  ```
303
303
 
304
304
  <!-- devtools-bun-policy:end -->
@@ -1,7 +1,7 @@
1
1
  export declare const bunRuntimePolicy: {
2
- readonly packageManager: "bun@1.4.0";
3
- readonly typesRange: "^1.4.0";
4
- readonly version: "1.4.0";
2
+ readonly packageManager: "bun@1.4.1";
3
+ readonly typesRange: "^1.4.1";
4
+ readonly version: "1.4.1";
5
5
  };
6
6
  /**
7
7
  * Canonical Node LTS baseline for Node-based Ankhorage tooling and CI execution.
@@ -4,7 +4,7 @@
4
4
  * Import these from `@ankhorage/devtools/policy` when another package needs to inspect
5
5
  * the managed Bun or Node baseline without defining an independent version authority.
6
6
  */
7
- const BUN_VERSION = '1.4.0';
7
+ const BUN_VERSION = '1.4.1';
8
8
  export const bunRuntimePolicy = {
9
9
  packageManager: `bun@${BUN_VERSION}`,
10
10
  typesRange: `^${BUN_VERSION}`,
@@ -50,6 +50,7 @@ jobs:
50
50
  fi
51
51
 
52
52
  - name: Create release pull request or publish to npm
53
+ id: changesets
53
54
  if: hashFiles('.changeset/config.json') != ''
54
55
  uses: changesets/action@v1
55
56
  with:
@@ -76,6 +77,40 @@ jobs:
76
77
  fi
77
78
  done
78
79
 
80
+ - name: Create the scoped rollout token
81
+ id: rollout-token
82
+ if: steps.changesets.outputs.published == 'true'
83
+ uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
84
+ with:
85
+ client-id: ${{ vars.ANKHORAGE_RENOVATE_SYNC_CLIENT_ID }}
86
+ private-key: ${{ secrets.ANKHORAGE_RENOVATE_SYNC_PRIVATE_KEY }}
87
+ owner: ankhorage
88
+ repositories: renovate
89
+ permission-contents: write
90
+
91
+ - name: Trigger the Devtools consumer rollout
92
+ if: steps.changesets.outputs.published == 'true'
93
+ uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
94
+ env:
95
+ PUBLISHED_PACKAGES: ${{ steps.changesets.outputs.publishedPackages }}
96
+ with:
97
+ github-token: ${{ steps.rollout-token.outputs.token }}
98
+ script: |
99
+ const publishedPackages = JSON.parse(process.env.PUBLISHED_PACKAGES ?? '[]');
100
+ const release = publishedPackages.find(
101
+ (candidate) => candidate.name === '@ankhorage/devtools',
102
+ );
103
+ if (!release || !/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(release.version)) {
104
+ throw new Error('Changesets must report one exact published Devtools version.');
105
+ }
106
+
107
+ await github.rest.repos.createDispatchEvent({
108
+ owner: 'ankhorage',
109
+ repo: 'renovate',
110
+ event_type: 'devtools-release',
111
+ client_payload: { version: release.version },
112
+ });
113
+
79
114
  - name: Skip release
80
115
  if: hashFiles('.changeset/config.json') == ''
81
116
  run: echo "No Changesets config found; skipping release."
@@ -14,10 +14,10 @@ permissions:
14
14
  jobs:
15
15
  changeset:
16
16
  if: >-
17
- github.actor == 'renovate[bot]' &&
17
+ (github.actor == 'renovate[bot]' || github.actor == 'ankhorage-renovate-sync[bot]') &&
18
18
  github.event.pull_request.head.repo.full_name == github.repository &&
19
19
  startsWith(github.event.pull_request.head.ref, 'renovate/')
20
- uses: ankhorage/renovate/.github/workflows/changeset.yml@1721d245371e879301d7a2e5299d1c5790d97459
20
+ uses: ankhorage/renovate/.github/workflows/changeset.yml@d3f138f4e8d3eb84244730f86591c6556738c1f4
21
21
  with:
22
22
  renovate_sync_client_id: ${{ vars.ANKHORAGE_RENOVATE_SYNC_CLIENT_ID }}
23
23
  secrets:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ankhorage/devtools",
3
- "version": "1.10.14",
3
+ "version": "1.10.16",
4
4
  "description": "Shared development tools and repository standards for Ankhorage",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ankhorage/devtools#readme",
@@ -106,10 +106,10 @@
106
106
  },
107
107
  "dependencies": {
108
108
  "@ankhorage/utility": "^0.3.0",
109
- "@changesets/cli": "^3.0.1",
109
+ "@changesets/cli": "^3.0.2",
110
110
  "@eslint/compat": "^2.1.1",
111
111
  "@eslint/js": "^10.0.1",
112
- "eslint": "^10.9.1",
112
+ "eslint": "^10.10.0",
113
113
  "eslint-config-prettier": "^10.1.8",
114
114
  "eslint-plugin-import": "^2.32.0",
115
115
  "eslint-plugin-prettier": "^5.5.6",
@@ -126,9 +126,9 @@
126
126
  "devDependencies": {
127
127
  "@ankhorage/ankh": "^0.8.10",
128
128
  "@ankhorage/doctor": "0.10.7",
129
- "@types/bun": "^1.4.0",
129
+ "@types/bun": "^1.4.1",
130
130
  "@types/node": "^26.4.1",
131
131
  "typescript": "~6.0.3"
132
132
  },
133
- "packageManager": "bun@1.4.0"
133
+ "packageManager": "bun@1.4.1"
134
134
  }