stable-ci 0.1.0 → 0.1.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/README.md CHANGED
@@ -163,7 +163,7 @@ This repository includes a composite GitHub Action.
163
163
  steps:
164
164
  - uses: actions/checkout@v4
165
165
 
166
- - uses: saldfsdk/stable-ci@v0.1.0
166
+ - uses: saldfsdk/stable-ci@v0.1.1
167
167
  with:
168
168
  config: stable-ci.yml
169
169
  junit: reports/stable-ci.xml
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { readFileSync } from 'node:fs';
2
3
  import { Command } from 'commander';
3
4
  import { createDemoAdapter } from './adapters/demo.js';
4
5
  import { createHttpDemoAdapter } from './adapters/http-demo.js';
@@ -8,6 +9,7 @@ import { loadConfig } from './config.js';
8
9
  import { runSuite } from './core/runner.js';
9
10
  import { writeJUnit } from './reporters/junit.js';
10
11
  import { scenarios } from './scenarios/builtins.js';
12
+ const packageJson = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
11
13
  const program = new Command();
12
14
  function printResults(adapterName, results) {
13
15
  console.log('Stablecoin Reliability CI');
@@ -33,7 +35,7 @@ function printResults(adapterName, results) {
33
35
  program
34
36
  .name('stable-ci')
35
37
  .description('Reliability CI for stablecoin payment integrations')
36
- .version('0.1.0');
38
+ .version(packageJson.version);
37
39
  program
38
40
  .command('scenarios')
39
41
  .description('List built-in reliability scenarios')
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "stable-ci",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Reliability CI for stablecoin payment integrations",
5
- "main": "index.js",
6
5
  "scripts": {
7
6
  "test": "vitest run",
8
7
  "dev": "tsx src/index.ts",