diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 693cc99c..1ea07b63 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,9 @@ name: RELEASE -on: [workflow_dispatch] +on: + push: + branches: + - main + jobs: main: runs-on: ubuntu-latest diff --git a/packages/esbuild-meta/src/lib/filter-meta.ts b/packages/esbuild-meta/src/lib/filter-meta.ts index 660b4b46..c2924747 100644 --- a/packages/esbuild-meta/src/lib/filter-meta.ts +++ b/packages/esbuild-meta/src/lib/filter-meta.ts @@ -12,7 +12,7 @@ const distPath = { alias: 'd', type: 'string', default: 'dist', - description: 'The path to the dist folder' + description: 'The path to the stats.json file' } as const satisfies Options; const outPath = { diff --git a/release.config.js b/release.config.js deleted file mode 100644 index b83f049b..00000000 --- a/release.config.js +++ /dev/null @@ -1,40 +0,0 @@ -module.exports = { - branches: ['main'], - preset: 'conventionalcommits', - presetConfig: { - types: [ - { type: 'feat', section: 'Features' }, - { type: 'fix', section: 'Bug Fixes' }, - { type: 'chore', section: 'Chores' }, - { type: 'docs', hidden: true }, - { type: 'style', hidden: true }, - { type: 'refactor', section: 'Refactoring' }, - { type: 'perf', hidden: true }, - { type: 'test', hidden: true }, - ], - }, - releaseRules: [{ type: 'refactor', release: 'patch' }], - plugins: [ - '@semantic-release/commit-analyzer', - '@semantic-release/release-notes-generator', - [ - '@semantic-release/changelog', - { - changelogFile: `./CHANGELOG.md`, - }, - ], - [ - '@semantic-release/exec', - { - prepareCmd: `VERSION=\${nextRelease.version} npx nx run-many -t release && VERSION=\${nextRelease.version} npx -p replace-json-property rjp ./package.json version \${nextRelease.version}`, - }, - ], - [ - '@semantic-release/git', - { - assets: [`libs/**/package.json`, `package.json`, `CHANGELOG.md`], - message: 'chore(release): -v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}', - }, - ], - ], -};