Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:

- run: npm install

- name: Build
run: npm run build

- name: Test
run: npx vitest run

- name: Validate selection
env:
RELEASE_ENGINE: ${{ inputs.release_engine }}
Expand Down Expand Up @@ -102,12 +108,6 @@ jobs:
- name: Update lockfile
run: npm install

- name: Build
run: npm run build

- name: Test
run: npx vitest run

- name: Publish engine
if: inputs.release_engine == true
run: npm publish --workspace packages/engine --access public --provenance
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/tests/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ describe('CLI command parsing', () => {
});

it('shows version with --version', () => {
const pkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf-8'));
const { stdout, exitCode } = runCli(['--version']);
expect(exitCode).toBe(0);
expect(stdout.trim()).toBe('0.0.1');
expect(stdout.trim()).toBe(pkg.version);
});

it('shows run command help', () => {
Expand Down
Loading