Skip to content

Commit fe77ee3

Browse files
authored
chore(ci): push changes to submodules (#155)
* chore: add dummy submodule * chore(ci): push change to submodule * chore: run release script on test branch
1 parent c5d423b commit fe77ee3

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.github/workflows/process-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
- uses: actions/checkout@v2
1818
with:
1919
fetch-depth: 0
20+
submodules: true
21+
22+
- run: git checkout chore/release
2023

2124
- name: Setup
2225
id: setup
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 04ec6e52f8cd58c5abc6c71c7fb19a652b597e8b

scripts/release/process-release.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,23 @@ langsToUpdateRepo.forEach((lang) => {
131131
// @ts-expect-error the library `execa` is not typed correctly
132132
run(`yarn generate ${lang}`).pipe(process.stdout);
133133
});
134+
135+
const clientPath = path.resolve(
136+
ROOT_DIR,
137+
'clients/dummy-algoliasearch-client-javascript'
138+
);
139+
const runInClient: Run = (command, options = {}) =>
140+
runOriginal(command, {
141+
cwd: clientPath,
142+
...options,
143+
});
144+
145+
runInClient(`git checkout next`);
146+
run(
147+
`cp -r clients/algoliasearch-client-javascript/ clients/dummy-algoliasearch-client-javascript`
148+
);
149+
runInClient(`git add .`);
150+
execa.sync('git', ['commit', '-m', 'chore: release test'], {
151+
cwd: clientPath,
152+
});
153+
runInClient(`git push origin next`);

0 commit comments

Comments
 (0)