Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
davydog187 committed Feb 5, 2023
1 parent 36b711c commit d4ceaf7
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"plugin:react-hooks/recommended",
"plugin:prettier/recommended"
]
}
}
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI
on:
push:
branches:
- main
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- run: yarn install
- run: npm run lint

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- run: yarn install
- run: npm run typecheck

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- run: yarn install
- run: npm run format:check
43 changes: 25 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
"name": "sanity-plugin-portable-table",
"version": "1.0.0",
"description": "A table plugin for Sanity that supports PortableText cells",
"author": "Dave Lucia <[email protected]>",
"homepage": "https://github.com/bitfo/sanity-portable-table#readme",
"bugs": {
"url": "https://github.com/bitfo/sanity-portable-table/issues"
},
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/bitfo/sanity-portable-table.git"
},
"license": "Apache-2.0",
"source": "./src/index.ts",
"author": "Dave Lucia <[email protected]>",
"exports": {
".": {
"types": "./lib/src/index.d.ts",
Expand All @@ -17,24 +24,25 @@
},
"main": "./lib/index.js",
"module": "./lib/index.esm.js",
"source": "./src/index.ts",
"types": "./lib/src/index.d.ts",
"files": ["src", "lib", "v2-incompatible.js", "sanity.json"],
"engines": {
"node": ">=14"
},
"files": [
"src",
"lib",
"v2-incompatible.js",
"sanity.json"
],
"scripts": {
"clean": "rimraf lib",
"lint": "eslint .",
"prebuild": "npm run clean && plugin-kit verify-package --silent && pkg-utils",
"build": "pkg-utils build",
"watch": "pkg-utils watch",
"clean": "rimraf lib",
"format": "prettier -w .",
"format:check": "prettier -c .",
"link-watch": "plugin-kit link-watch",
"lint": "eslint .",
"prepublishOnly": "npm run build",
"typecheck": "tsc --pretty --noEmit"
},
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/bitfo/sanity-portable-table.git"
"typecheck": "tsc --pretty --noEmit",
"watch": "pkg-utils watch"
},
"dependencies": {
"@portabletext/toolkit": "^2.0.1",
Expand Down Expand Up @@ -64,8 +72,7 @@
"react": "^18",
"sanity": "dev-preview || 3.0.0-rc.2"
},
"bugs": {
"url": "https://github.com/bitfo/sanity-portable-table/issues"
},
"homepage": "https://github.com/bitfo/sanity-portable-table#readme"
"engines": {
"node": ">=14"
}
}

0 comments on commit d4ceaf7

Please sign in to comment.