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: 8 additions & 4 deletions .github/old/release.yml → .github/old/release2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ name: Release

on:
push:
tags:
- 'v*'
branches:
- main
- beta

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
contents: write # to be able to publish a GitHub release
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -25,6 +27,8 @@ jobs:
- name: install
run: pnpm i

- run: npx changelogithub
- name: release
run: pnpm semantic-release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
File renamed without changes.
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ name: Release

on:
push:
branches:
- main
- beta
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
id-token: write # to enable use of OIDC for npm provenance
contents: write
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -27,8 +25,6 @@ jobs:
- name: install
run: pnpm i

- name: release
run: pnpm semantic-release
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@vitest/coverage-v8": "^0.34.3",
"bumpp": "^9.2.0",
"concurrently": "^8.2.1",
"conventional-changelog-conventionalcommits": "^7.0.1",
"cross-env": "^7.0.3",
"eslint": "^8.48.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions release.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,20 @@
/** @type {import('semantic-release').Options} */
module.exports = {
branches: ['main', 'next', { name: 'beta', prerelease: true }],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits',
},
],
[
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',
},
],
'@semantic-release/npm',
'@semantic-release/github',
],
};
34 changes: 0 additions & 34 deletions src/commands/clean.ts

This file was deleted.

24 changes: 0 additions & 24 deletions src/commands/list.ts

This file was deleted.

4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { log } from '@clack/prompts';
import { cli } from 'cleye';

import { description, version } from '../package.json';
import clean from './commands/clean.js';
import list from './commands/list.js';
import { checkDir } from './operations/check-dir.js';
import { createWorkspace } from './operations/create-workspace.js';
import { getWorkspace } from './operations/get-workspace.js';
Expand All @@ -27,7 +25,7 @@ cli(
examples: ['codew .'],
},

commands: [list, clean],
commands: [],
},
async (argv) => {
const path = argv._.path;
Expand Down
2 changes: 1 addition & 1 deletion test/operations/create-workspace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { basename, resolve } from 'node:path';

import { afterEach, beforeEach, expect, test, vi } from 'vitest';

import { DbData } from '../../src/db.ts';
import { DbData } from '../../src/db.js';
import { createWorkspace } from '../../src/operations/create-workspace.js';

const mocks = vi.hoisted(() => {
Expand Down
2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

"strict": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true
},
Expand Down