Skip to content

Commit

Permalink
Merge pull request #58 from mrjvs/make-conf-real-please
Browse files Browse the repository at this point in the history
Prepare release for @neato/config
  • Loading branch information
mrjvs authored May 3, 2024
2 parents a8de5b6 + dd33cee commit f8a944d
Show file tree
Hide file tree
Showing 44 changed files with 1,458 additions and 155 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/config-lint-typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: config - lint and typecheck

on:
pull_request: {}

jobs:
check:
name: Check if files modified
runs-on: ubuntu-latest
outputs:
checked: ${{ steps.changed-files.outputs.any_modified }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
with:
files: |
packages/config/**
lint:
name: Linting and Typecheck
runs-on: ubuntu-latest
needs: [check]
if: needs.check.outputs.checked == 'true'
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install pnpm packages
working-directory: packages/config
run: pnpm install --frozen-lockfile

- name: Lint
working-directory: packages/config
run: pnpm lint

- name: Typecheck
working-directory: packages/config
run: pnpm typecheck
54 changes: 54 additions & 0 deletions .github/workflows/config-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: config - publish version

on:
push:
branches:
- main

jobs:
check:
name: Check
runs-on: ubuntu-latest
outputs:
checked: ${{ steps.changed-files.outputs.any_modified }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
with:
files: |
packages/config/**
publish:
runs-on: ubuntu-latest
needs: [check]
if: needs.check.outputs.checked == 'true'
environment:
name: npm
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: Install pnpm packages
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm run build
working-directory: 'packages/config'

- name: Publish
run: pnpm publish --access public
working-directory: 'packages/config'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
45 changes: 45 additions & 0 deletions .github/workflows/config-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: config - test

on:
pull_request: {}

jobs:
check:
name: Check if files modified
runs-on: ubuntu-latest
outputs:
checked: ${{ steps.changed-files.outputs.any_modified }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
with:
files: |
packages/config/**
lint:
name: Testing
runs-on: ubuntu-latest
needs: [check]
if: needs.check.outputs.checked == 'true'
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install pnpm packages
working-directory: packages/config
run: pnpm install --frozen-lockfile

- name: Test
working-directory: packages/config
run: pnpm test
2 changes: 1 addition & 1 deletion .github/workflows/create-guider-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- name: Install pnpm packages
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm run build
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/create-guider-lint-typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: create-guider - lint and typecheck

on:
pull_request: {}

jobs:
check:
name: Check if files modified
runs-on: ubuntu-latest
outputs:
checked: ${{ steps.changed-files.outputs.any_modified }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
with:
files: |
apps/create-guider/**
lint:
name: Linting and Typecheck
runs-on: ubuntu-latest
needs: [check]
if: needs.check.outputs.checked == 'true'
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install pnpm packages
working-directory: apps/create-guider
run: pnpm install --frozen-lockfile

- name: Lint
working-directory: apps/create-guider
run: pnpm lint

- name: Typecheck
working-directory: apps/create-guider
run: pnpm typecheck
2 changes: 1 addition & 1 deletion .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
cache: 'pnpm'

- name: Install pnpm packages
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Build @neato/guider
run: cd packages/guider && pnpm run build
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/docs-lint-typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: docs - lint and typecheck

on:
pull_request: {}

jobs:
check:
name: Check if files modified
runs-on: ubuntu-latest
outputs:
checked: ${{ steps.changed-files.outputs.any_modified }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
with:
files: |
apps/docs/**
lint:
name: Linting and Typecheck
runs-on: ubuntu-latest
needs: [check]
if: needs.check.outputs.checked == 'true'
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install pnpm packages
working-directory: apps/docs
run: pnpm install --frozen-lockfile

- name: Lint
working-directory: apps/docs
run: pnpm lint

- name: Typecheck
working-directory: apps/docs
run: pnpm typecheck
49 changes: 49 additions & 0 deletions .github/workflows/guider-lint-typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: guider - lint and typecheck

on:
pull_request: {}

jobs:
check:
name: Check if files modified
runs-on: ubuntu-latest
outputs:
checked: ${{ steps.changed-files.outputs.any_modified }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
with:
files: |
packages/guider/**
lint:
name: Linting and Typecheck
runs-on: ubuntu-latest
needs: [check]
if: needs.check.outputs.checked == 'true'
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install pnpm packages
working-directory: packages/guider
run: pnpm install --frozen-lockfile

- name: Lint
working-directory: packages/guider
run: pnpm lint

- name: Typecheck
working-directory: packages/guider
run: pnpm typecheck
2 changes: 1 addition & 1 deletion .github/workflows/guider-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- name: Install pnpm packages
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm run build
Expand Down
6 changes: 4 additions & 2 deletions apps/create-guider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@
"build": "tsup",
"dev": "tsup --watch --onSuccess 'node dist/index.js'",
"lint": "eslint .",
"lint:fix": "eslint --fix ."
"lint:fix": "eslint --fix .",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@repo/prettier-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@types/node": "^20.11.19",
"concurrently": "^8.2.2",
"tsup": "7.2.0"
"tsup": "7.2.0",
"typescript": "^5.4.5"
},
"dependencies": {
"@clack/prompts": "^0.7.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/create-guider/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "@repo/typescript-config/base.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"],
"exclude": ["dist", "build", "node_modules", "templates"],
"compilerOptions": {
"jsx": "react-jsx",
"module": "ES2022",
Expand Down
6 changes: 4 additions & 2 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"build": "next build",
"dev": "next",
"lint": "eslint .",
"lint:fix": "eslint --fix ."
"lint:fix": "eslint --fix .",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@repo/eslint-config": "workspace:*",
Expand All @@ -24,7 +25,8 @@
"@types/react": "18.2.56",
"autoprefixer": "^10.4.17",
"postcss": "^8.4.37",
"tailwindcss": "^3.4.1"
"tailwindcss": "^3.4.1",
"typescript": "^5.4.5"
},
"dependencies": {
"@neato/guider": "workspace:*",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
},
"devDependencies": {
"@repo/typescript-config": "workspace:*",
"tsup": "7.2.0",
"turbo": "1.11.3",
"tsup": "7.2.0"
"vite": "^5.2.11",
"vitest": "^1.6.0"
}
}
Loading

0 comments on commit f8a944d

Please sign in to comment.