Skip to content

Commit

Permalink
fix: release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
c3b5aw committed Aug 9, 2022
1 parent eefced6 commit 0ae4e5c
Show file tree
Hide file tree
Showing 19 changed files with 455 additions and 69 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-geckos-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@escape.tech/graphql-armor': patch
---

fix: release CI
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: yarn lint

- name: Build workspaces
run: yarn workspaces foreach -ptv run build
run: yarn build

- name: Tests workspaces
run: yarn test:ci
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ jobs:
run: cp README.md packages/graphql-armor/README.md

- name: Install Dependencies
run: yarn
run: |
yarn
yarn build
- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down
8 changes: 2 additions & 6 deletions .hooks/pre-commit.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
"command": "yarn lint"
},
{
"name": "build",
"command": "yarn build"
},
{
"name": "test",
"command": "yarn test"
"name": "build and test yarn",
"command": "yarn build && yarn test"
}
]
}
9 changes: 0 additions & 9 deletions .vscode/settings.json

This file was deleted.

13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
"url": "git+ssh://[email protected]:Escape-Technologies/graphql-armor.git"
},
"scripts": {
"build": "preconstruct build",
"build:yarn": "yarn workspaces foreach -ptv run build",
"watch": "preconstruct watch",
"lint": "prettier --check '**/*.{ts,js}'",
"prettier": "prettier --write '**/*.{ts,js}'",
"test": "jest",
"test:ci": "jest --coverage",
"build": "yarn workspaces foreach -ptv run build",
"release": "changeset publish"
},
"author": "Escape Technologies SAS",
Expand All @@ -29,6 +31,7 @@
"@commitlint/cli": "^17.0.0",
"@commitlint/config-angular": "^17.0.0",
"@escape.tech/mookme": "^2.2.0-beta.2",
"@preconstruct/cli": "^2.2.1",
"@trivago/prettier-plugin-sort-imports": "^3.3.0",
"@types/babel__core": "^7",
"@types/babel__preset-env": "^7",
Expand All @@ -50,5 +53,11 @@
"node": "16.14.2",
"yarn": "1.22.18"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"preconstruct": {
"packages": [
"packages/graphql-armor",
"packages/plugins/*"
]
}
}
4 changes: 2 additions & 2 deletions packages/graphql-armor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"middleware"
],
"packageManager": "[email protected]",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "dist/escape.tech-graphql-armor.cjs.js",
"module": "dist/escape.tech-graphql-armor.esm.js",
"files": [
"dist"
],
Expand Down
1 change: 0 additions & 1 deletion packages/graphql-armor/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"moduleResolution": "node",
"target": "ES2018",
"lib": ["ES6"],
"outDir": "./dist",
"sourceMap": true,
"strict": true,
"declaration": true,
Expand Down
7 changes: 2 additions & 5 deletions packages/plugins/block-field-suggestions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
"version": "1.1.0",
"description": "Block graphql field suggestion.",
"packageManager": "[email protected]",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"main": "dist/escape.tech-graphql-armor-block-field-suggestions.cjs.js",
"module": "dist/escape.tech-graphql-armor-block-field-suggestions.esm.js",
"scripts": {
"build": "tsc",
"dev": "tsc -w"
Expand Down
1 change: 0 additions & 1 deletion packages/plugins/block-field-suggestions/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"moduleResolution": "node",
"target": "ES2018",
"lib": ["ES6"],
"outDir": "./dist",
"sourceMap": true,
"strict": true,
"declaration": true,
Expand Down
7 changes: 2 additions & 5 deletions packages/plugins/character-limit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
"version": "1.1.0",
"description": "Limit the number of character allowed in a GraphQL query.",
"packageManager": "[email protected]",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"main": "dist/escape.tech-graphql-armor-character-limit.cjs.js",
"module": "dist/escape.tech-graphql-armor-character-limit.esm.js",
"scripts": {
"build": "tsc",
"dev": "tsc -w"
Expand Down
1 change: 0 additions & 1 deletion packages/plugins/character-limit/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"moduleResolution": "node",
"target": "ES2018",
"lib": ["ES6"],
"outDir": "./dist",
"sourceMap": true,
"strict": true,
"declaration": true,
Expand Down
7 changes: 2 additions & 5 deletions packages/plugins/max-aliases/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
"version": "1.1.0",
"description": "Limit the number of aliases allowed in a GraphQL query.",
"packageManager": "[email protected]",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"main": "dist/escape.tech-graphql-armor-max-aliases.cjs.js",
"module": "dist/escape.tech-graphql-armor-max-aliases.esm.js",
"scripts": {
"build": "tsc",
"dev": "tsc -w"
Expand Down
1 change: 0 additions & 1 deletion packages/plugins/max-aliases/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"moduleResolution": "node",
"target": "ES2018",
"lib": ["ES6"],
"outDir": "./dist",
"sourceMap": true,
"strict": true,
"declaration": true,
Expand Down
7 changes: 2 additions & 5 deletions packages/plugins/max-depth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
"version": "1.1.0",
"description": "Limit the depth allowed in a GraphQL query.",
"packageManager": "[email protected]",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"main": "dist/escape.tech-graphql-armor-max-depth.cjs.js",
"module": "dist/escape.tech-graphql-armor-max-depth.esm.js",
"scripts": {
"build": "tsc",
"dev": "tsc -w"
Expand Down
1 change: 0 additions & 1 deletion packages/plugins/max-depth/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"moduleResolution": "node",
"target": "ES2018",
"lib": ["ES6"],
"outDir": "./dist",
"sourceMap": true,
"strict": true,
"declaration": true,
Expand Down
7 changes: 2 additions & 5 deletions packages/plugins/max-directives/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
"version": "1.1.0",
"description": "Limit the number of directives allowed in a GraphQL query.",
"packageManager": "[email protected]",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"main": "dist/escape.tech-graphql-armor-max-directives.cjs.js",
"module": "dist/escape.tech-graphql-armor-max-directives.esm.js",
"scripts": {
"build": "tsc",
"dev": "tsc -w"
Expand Down
1 change: 0 additions & 1 deletion packages/plugins/max-directives/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"moduleResolution": "node",
"target": "ES2018",
"lib": ["ES6"],
"outDir": "./dist",
"sourceMap": true,
"strict": true,
"declaration": true,
Expand Down
Loading

0 comments on commit 0ae4e5c

Please sign in to comment.