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
|
||||
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:
|
||||
name: CI OK
|
||||
runs-on: ubuntu-latest
|
||||
if: always()
|
||||
needs: [lint-workflows, test, typecheck]
|
||||
needs: [lint-workflows, test, typecheck, lint]
|
||||
steps:
|
||||
- name: Exit with error if some jobs are not successful
|
||||
run: exit 1
|
||||
|
||||
+4
-4
@@ -3,15 +3,15 @@ dedupePeers: true
|
||||
dedupePeerDependents: true
|
||||
minimumReleaseAge: 10080
|
||||
minimumReleaseAgeExclude:
|
||||
- '@oxc-project/*'
|
||||
- '@rolldown/*'
|
||||
- "@oxc-project/*"
|
||||
- "@rolldown/*"
|
||||
- rolldown@1.0.1
|
||||
- vite@8.0.13
|
||||
- vitest@4.1.6
|
||||
|
||||
overrides:
|
||||
lightningcss: '-' # we do not bundle any css
|
||||
postcss: '-' # we do not bundle any css
|
||||
lightningcss: "-" # we do not bundle any css
|
||||
postcss: "-" # we do not bundle any css
|
||||
|
||||
shellEmulator: true
|
||||
trustPolicy: no-downgrade
|
||||
|
||||
+6
-6
@@ -1,13 +1,13 @@
|
||||
import { defineConfig } from 'rolldown'
|
||||
import { defineConfig } from "rolldown";
|
||||
|
||||
export default defineConfig({
|
||||
input: 'src/index.ts',
|
||||
input: "src/index.ts",
|
||||
output: {
|
||||
dir: 'dist',
|
||||
format: 'esm',
|
||||
dir: "dist",
|
||||
format: "esm",
|
||||
cleanDir: true,
|
||||
minify: true,
|
||||
comments: false,
|
||||
},
|
||||
platform: 'node',
|
||||
})
|
||||
platform: "node",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user