Skip to content

Commit e96ff01

Browse files
authored
fix: fix variable refs (#6)
1 parent 3501f26 commit e96ff01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
node-version: '22'
2222

2323
- name: Install dependencies
24-
run: npm install --include=dev --omit=prod
24+
run: npm install --include=dev
2525

2626
- name: Run semantic-release
2727
env:

scripts/publish-version.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default async (pluginConfig, context) => {
3333
throw new Error(`Missing GitHub token.`);
3434
}
3535

36-
const octokit = new Octokit({ auth: githubToken });
36+
const octokit = new Octokit({ auth: GH_TOKEN });
3737
const umbrellaRepoUrl = `https://github.com/${umbrellaRepoOwner}/${umbrellaRepoName}.git`;
3838
const localRepoPath = path.resolve(`./tmp-umbrella-repo-${Date.now()}`); // Temporary local path for clone
3939

@@ -47,7 +47,7 @@ export default async (pluginConfig, context) => {
4747
logger.log(`Cloning ${umbrellaRepoUrl} to ${localRepoPath}`);
4848

4949
// // --- 1. Clone the umbrella repository ---
50-
const authenticatedUrl = `https://x-access-token:${githubToken}@github.com/${umbrellaRepoOwner}/${umbrellaRepoName}.git`;
50+
const authenticatedUrl = `https://x-access-token:${GH_TOKEN}@github.com/${umbrellaRepoOwner}/${umbrellaRepoName}.git`;
5151
execSync(`git clone --depth 1 --branch ${baseBranch} ${authenticatedUrl} ${localRepoPath}`, { stdio: 'inherit' });
5252

5353
// // --- 2. Configure Git User ---

0 commit comments

Comments
 (0)