start-command 0.37.2 → 0.37.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # start-command
2
2
 
3
+ ## 0.37.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 519ce86: CI/CD: the Rust release jobs receive the release deploy key again (the called workflow inherits secrets), and a rejected version push now fails the release instead of reporting success (#211).
8
+
9
+ ## 0.37.3
10
+
11
+ ### Patch Changes
12
+
13
+ - CI/CD: publish start-command to crates.io through trusted publishing (OIDC, `rust-lang/crates-io-auth-action`) instead of the long-lived `CARGO_TOKEN` / `CARGO_REGISTRY_TOKEN` secrets.
14
+
15
+ CI/CD: pass the crates.io token through CARGO_REGISTRY_TOKEN instead of the deprecated `cargo publish --token` flag, and pin GitHub runner images (ubuntu-24.04, macos-15, windows-2025).
16
+
3
17
  ## 0.37.2
4
18
 
5
19
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "start-command",
3
- "version": "0.37.2",
3
+ "version": "0.37.4",
4
4
  "description": "Gamification of coding, execute any command with ability to auto-report issues on GitHub",
5
5
  "main": "src/bin/cli.js",
6
6
  "exports": {
@@ -34,6 +34,7 @@ function createFakeCargoBin(tempDir) {
34
34
  `
35
35
  const fs = require('node:fs');
36
36
  fs.writeFileSync(process.env.FAKE_CARGO_ARGS_PATH, JSON.stringify(process.argv.slice(2)));
37
+ fs.writeFileSync(process.env.FAKE_CARGO_ARGS_PATH + '.token', process.env.CARGO_REGISTRY_TOKEN || '');
37
38
  process.exit(Number(process.env.FAKE_CARGO_EXIT || 0));
38
39
  `
39
40
  );
@@ -183,9 +184,12 @@ describe('publish-to-crates script', () => {
183
184
  '--allow-dirty',
184
185
  '--manifest-path',
185
186
  join(packageDir, 'Cargo.toml'),
186
- '--token',
187
- 'test-token',
188
187
  ]);
188
+ // The deprecated `cargo publish --token` flag must not be used;
189
+ // the token is passed through Cargo's native environment variable.
190
+ expect(readFileSync(`${cargoArgsPath}.token`, 'utf8')).toBe(
191
+ 'test-token'
192
+ );
189
193
  } finally {
190
194
  rmSync(tempDir, { force: true, recursive: true });
191
195
  }