@ankhorage/devtools 1.10.14 → 1.10.15
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.
|
@@ -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@
|
|
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