Skip to content

Commit 996e234

Browse files
chore: address PR comments - upgrade actions, vitest v4, log errors, remove npx
Co-Authored-By: Niels Swimberghe <3382717+Swimburger@users.noreply.github.com>
1 parent 8ed80f7 commit 996e234

5 files changed

Lines changed: 403 additions & 347 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1414

15-
- uses: actions/setup-node@v4
15+
- uses: actions/setup-node@v6
1616
with:
17-
node-version: '18'
17+
node-version: '20'
1818
cache: 'npm'
1919

2020
- name: Install dependencies

dist/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39400,7 +39400,8 @@ async function updateTargetSpec(token, branch, autoMerge) {
3940039400
try {
3940139401
fileMapping = JSON.parse(fileMappingInput);
3940239402
}
39403-
catch (_jsonError) {
39403+
catch (jsonError) {
39404+
core.debug(`JSON parse also failed: ${jsonError instanceof Error ? jsonError.message : String(jsonError)}`);
3940439405
throw new Error(`Failed to parse 'sources' input as either YAML or JSON. Please check the format. Error: ${yamlError.message}`);
3940539406
}
3940639407
}
@@ -39429,7 +39430,8 @@ async function runFernApiUpdate() {
3942939430
await exec.exec("fern", ["--version"], { silent: true });
3943039431
core.info("Fern CLI is already installed");
3943139432
}
39432-
catch (_error) {
39433+
catch (error) {
39434+
core.debug(`Fern CLI check failed: ${error instanceof Error ? error.message : String(error)}`);
3943339435
core.info("Fern CLI not found. Installing Fern CLI...");
3943439436
await exec.exec("npm", ["install", "-g", "fern-api"]);
3943539437
}
@@ -39468,7 +39470,8 @@ async function cloneRepository(options) {
3946839470
try {
3946939471
await exec.exec("git", ["clone", repoUrl, repoDir]);
3947039472
}
39471-
catch (_error) {
39473+
catch (error) {
39474+
core.debug(`Clone error: ${error instanceof Error ? error.message : String(error)}`);
3947239475
throw new Error(`Failed to clone repository. Please ensure your token has 'repo' scope and you have write access to ${options.repository}.`);
3947339476
}
3947439477
process.chdir(repoDir);

0 commit comments

Comments
 (0)