Skip to content

Commit

Permalink
Merge branch 'main' into f/FE-59/add-numeric-control
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFarmer authored Mar 13, 2024
2 parents 98dcc50 + bda0b36 commit 2d95230
Show file tree
Hide file tree
Showing 12 changed files with 2,481 additions and 1,068 deletions.
11 changes: 10 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ module.exports = {
],
ignorePatterns: ["dist", ".eslintrc.cjs", "lib"],
parser: "@typescript-eslint/parser",
plugins: ["react-refresh"],
plugins: ["react-refresh", "testing-library"],
overrides: [ {
files: ["./src/**/*.test.tsx"],
extends: ["plugin:testing-library/react"],
rules: {
"testing-library/prefer-implicit-assert": "error",
"testing-library/prefer-presence-queries": "error",
"testing-library/prefer-user-event": "error"
}
}],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

name: Release
on:
push:
branches:
- main

permissions:
contents: read # for checkout

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: pnpm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
3 changes: 3 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run lint
run: pnpm lint

- name: Run tests
run: pnpm test
26 changes: 22 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "@great-expectations/jsonforms-antd-renderers",
"private": false,
"version": "0.0.0",
"version": "0.0.0-semantic-release",
"files": [
"lib/**/*"
],
"main": "./lib/cjs/index.js",
"types": "./lib/cjs/index.d.ts",
"exports": {
"require": {
"types": "./lib/cjs/index.d.ts",
Expand All @@ -16,6 +18,19 @@
},
"default": "./lib/cjs/index.js"
},
"publishConfig": {
"provenance": true,
"access": "public"
},
"release": {
"branches": [
"main"
]
},
"repository": {
"type": "git",
"url": "https://github.com/great-expectations/jsonforms-antd-renderers.git"
},
"scripts": {
"clean": "rm -rf ./lib",
"build": "pnpm run clean && pnpm run build:esm && pnpm run build:cjs",
Expand All @@ -27,7 +42,8 @@
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
"build-storybook": "storybook build",
"semantic-release": "semantic-release"
},
"peerDependencies": {
"@ant-design/icons": "^5.3.0",
Expand Down Expand Up @@ -65,14 +81,16 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"eslint-plugin-storybook": "^0.6.15",
"eslint-plugin-testing-library": "^6.2.0",
"jsdom": "^24.0.0",
"json-schema-to-ts": "^3.0.0",
"lodash.isempty": "^4.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.6.8",
"semantic-release": "^23.0.2",
"storybook": "^7.6.17",
"typescript": "^5.2.2",
"vite": "^5.0.11",
"vite": "^5.0.12",
"vitest": "^1.2.2"
}
}
Loading

0 comments on commit 2d95230

Please sign in to comment.