mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Run format lint in CI (#630)
This commit is contained in:
@@ -67,11 +67,27 @@ jobs:
|
|||||||
- name: Typecheck
|
- name: Typecheck
|
||||||
run: pnpm typecheck
|
run: pnpm typecheck
|
||||||
|
|
||||||
|
lint:
|
||||||
|
name: Lint
|
||||||
|
timeout-minutes: 20
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out repo
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- uses: ./.github/actions/ci-setup
|
||||||
|
|
||||||
|
- name: Format
|
||||||
|
run: pnpm format
|
||||||
|
|
||||||
ci-ok:
|
ci-ok:
|
||||||
name: CI OK
|
name: CI OK
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: always()
|
if: always()
|
||||||
needs: [lint-workflows, test, typecheck]
|
needs: [lint-workflows, test, typecheck, lint]
|
||||||
steps:
|
steps:
|
||||||
- name: Exit with error if some jobs are not successful
|
- name: Exit with error if some jobs are not successful
|
||||||
run: exit 1
|
run: exit 1
|
||||||
|
|||||||
+4
-4
@@ -3,15 +3,15 @@ dedupePeers: true
|
|||||||
dedupePeerDependents: true
|
dedupePeerDependents: true
|
||||||
minimumReleaseAge: 10080
|
minimumReleaseAge: 10080
|
||||||
minimumReleaseAgeExclude:
|
minimumReleaseAgeExclude:
|
||||||
- '@oxc-project/*'
|
- "@oxc-project/*"
|
||||||
- '@rolldown/*'
|
- "@rolldown/*"
|
||||||
- rolldown@1.0.1
|
- rolldown@1.0.1
|
||||||
- vite@8.0.13
|
- vite@8.0.13
|
||||||
- vitest@4.1.6
|
- vitest@4.1.6
|
||||||
|
|
||||||
overrides:
|
overrides:
|
||||||
lightningcss: '-' # we do not bundle any css
|
lightningcss: "-" # we do not bundle any css
|
||||||
postcss: '-' # we do not bundle any css
|
postcss: "-" # we do not bundle any css
|
||||||
|
|
||||||
shellEmulator: true
|
shellEmulator: true
|
||||||
trustPolicy: no-downgrade
|
trustPolicy: no-downgrade
|
||||||
|
|||||||
+6
-6
@@ -1,13 +1,13 @@
|
|||||||
import { defineConfig } from 'rolldown'
|
import { defineConfig } from "rolldown";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
input: 'src/index.ts',
|
input: "src/index.ts",
|
||||||
output: {
|
output: {
|
||||||
dir: 'dist',
|
dir: "dist",
|
||||||
format: 'esm',
|
format: "esm",
|
||||||
cleanDir: true,
|
cleanDir: true,
|
||||||
minify: true,
|
minify: true,
|
||||||
comments: false,
|
comments: false,
|
||||||
},
|
},
|
||||||
platform: 'node',
|
platform: "node",
|
||||||
})
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user