diff --git a/.bumpy/empty-ci-setup.md b/.bumpy/empty-ci-setup.md new file mode 100644 index 0000000..a845151 --- /dev/null +++ b/.bumpy/empty-ci-setup.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e2e876f..86ffe33 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,8 +8,10 @@ jobs: - uses: actions/checkout@v6 - uses: oven-sh/setup-bun@v2 - run: bun install + - run: cd packages/bumpy && bunx varlock load # need ENV types for tsdown config file - run: bun run check - - run: bun test + - run: git config --global user.name "CI" && git config --global user.email "ci@test" + - run: bun run test bumpy-check: runs-on: ubuntu-latest diff --git a/package.json b/package.json index 07ae8e7..f3dfc7e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "lint:fix": "oxlint --fix", "fmt": "oxfmt", "fmt:check": "oxfmt --check", - "check": "oxlint && oxfmt --check && bunx tsc -p packages/bumpy --noEmit", + "check": "oxlint && oxfmt --check && bun run --filter @varlock/bumpy check", + "test": "bun run --filter @varlock/bumpy test", "postinstall": "lefthook install" }, "devDependencies": { diff --git a/packages/bumpy/bunfig.toml b/packages/bumpy/bunfig.toml index e70b588..6e8d17b 100644 --- a/packages/bumpy/bunfig.toml +++ b/packages/bumpy/bunfig.toml @@ -1,5 +1,6 @@ # these global vars will be bundled at build time by tsdown # this just injects them for running `bun test` or running the ts code directly via bun + [define] "__BUMPY_VERSION__" = "'dev'" "__BUMPY_WEBSITE_URL__" = "'https://github.com/dmno-dev/bumpy'" diff --git a/packages/bumpy/package.json b/packages/bumpy/package.json index aaef197..d0e88ed 100644 --- a/packages/bumpy/package.json +++ b/packages/bumpy/package.json @@ -24,6 +24,7 @@ }, "scripts": { "build": "tsdown", + "check": "bun run tsc --noEmit", "test": "bun test" }, "devDependencies": {