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.
- package/dist/commands/submit.js +4 -3
- package/package.json +1 -1
package/dist/commands/submit.js
CHANGED
|
@@ -170,7 +170,7 @@ export async function submit() {
|
|
|
170
170
|
catch {
|
|
171
171
|
// Already forked, that's fine
|
|
172
172
|
}
|
|
173
|
-
// Clone the
|
|
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
|
|
198
|
-
spinner.text = 'Pushing to
|
|
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...';
|