skillsets 0.4.0 → 0.4.2

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.
@@ -170,7 +170,7 @@ export async function submit() {
170
170
  catch {
171
171
  // Already forked, that's fine
172
172
  }
173
- // Clone the fork
173
+ // Clone the registry
174
174
  spinner.text = 'Cloning registry...';
175
175
  execSync(`gh repo clone ${REGISTRY_REPO} "${tempDir}" -- --depth=1`, { stdio: 'ignore' });
176
176
  // Create branch
@@ -194,8 +194,9 @@ export async function submit() {
194
194
  ? `Update ${skillsetId} to v${skillset.version}`
195
195
  : `Add ${skillsetId}`;
196
196
  spawnSync('git', ['commit', '-m', commitMsg], { cwd: tempDir, stdio: 'ignore' });
197
- // Push to fork
198
- spinner.text = 'Pushing to fork...';
197
+ // Push to origin (gh auth setup-git ensures git uses gh's credentials)
198
+ spinner.text = 'Pushing to registry...';
199
+ execSync('gh auth setup-git', { cwd: tempDir, stdio: 'ignore' });
199
200
  spawnSync('git', ['push', '-u', 'origin', branchName, '--force'], { cwd: tempDir, stdio: 'ignore' });
200
201
  // Create PR
201
202
  spinner.text = 'Creating pull request...';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillsets",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "CLI tool for discovering and installing verified skillsets",
5
5
  "type": "module",
6
6
  "bin": {