Skip to content

Commit

Permalink
feat: allow to pass custom head reference
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed Jul 15, 2023
1 parent 80efd78 commit cfe9dba
Show file tree
Hide file tree
Showing 23 changed files with 1,282 additions and 1,046 deletions.
14 changes: 14 additions & 0 deletions .changeset/great-moons-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
'@wayofdev/browserslist-config': minor
'@wayofdev/eslint-config-bases': minor
'@wayofdev/lint-staged-config': minor
'@wayofdev/commitlint-config': minor
'@wayofdev/secretlint-config': minor
'@wayofdev/stylelint-config': minor
'@wayofdev/htmlhint-config': minor
'@wayofdev/tsconfig-config': minor
'@wayofdev/postcss-config': minor
'@wayofdev/markdownlint-config': minor
---

feat: update packages to latest versions
10 changes: 2 additions & 8 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
---

# this file is for the labeler workflow job
# Documentation https://github.com/marketplace/actions/labeler

"type: documentation":
'type: documentation':
- assets/**/*
- .github/*
- ./*.md

"type: maintenance":
- .dependabot/*
'type: maintenance':
- .github/**/*
- app/tests/**/*
- tests/**/*

...
19 changes: 7 additions & 12 deletions .github/workflows/label.yml → .github/workflows/apply-labels.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
---

# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration. For more information, see:
# file with configuration. For more information, see:
# https://github.com/actions/labeler/blob/master/README.md

on: # yamllint disable-line rule:truthy
on: # yamllint disable-line rule:truthy
pull_request:
merge_group:

name: 🏷️ Add labels

jobs:
label:
runs-on: ubuntu-latest
steps:
- name: 🏷️ Apply labels
uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

...
uses: wayofdev/gh-actions/.github/workflows/apply-labels.yml@master
with:
os: ubuntu-latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
21 changes: 11 additions & 10 deletions .github/workflows/auto-merge-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ name: 🤞 Auto merge release

jobs:
auto-merge:
if: github.actor == 'lotyp' && github.head_ref == 'changeset-release/master'
runs-on: ubuntu-latest
steps:
- name: 🤞 Auto-merge pull request
uses: peter-evans/enable-pull-request-automerge@v3
with:
pull-request-number: ${{ github.event.pull_request.number }}
merge-method: merge
# to trigger other workflows, pass PAT token instead of GITHUB_TOKEN
token: ${{ secrets.GITHUB_TOKEN }}
uses: wayofdev/gh-actions/.github/workflows/auto-merge-release.yml@master
with:
os: ubuntu-latest
pull-request-number: ${{ github.event.pull_request.number }}
actor: lotyp
merge-method: merge
allowed-ref: changeset-release/master

secrets:
# to trigger other workflows, pass PAT token instead of GITHUB_TOKEN
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/ci-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
registry-url: 'https://registry.npmjs.org/'

- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install
uses: wayofdev/gh-actions/.github/actions/pnpm-install@master

- name: 📤 Restore packages cache
uses: actions/cache@v3
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/codesee-arch-diagram.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/create-arch-diagram.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
# This workflow was added by CodeSee. Learn more at https://codesee.io/
# This is v2.0 of this workflow file

on: # yamllint disable-line rule:truthy
push:
branches:
- develop
pull_request_target:
types:
- opened
- synchronize
- reopened

name: 🤖 CodeSee

permissions: read-all

jobs:
codesee:
uses: wayofdev/gh-actions/.github/workflows/create-arch-diagram.yml@master
with:
os: ubuntu-latest
continue-on-error: true
secrets:
codesee-token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
33 changes: 6 additions & 27 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,9 @@ permissions:

jobs:
shellcheck:
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write
# only required for workflows in private repositories
actions: read
contents: read

steps:
- name: 📦 Check out the codebase
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: 🐞 Differential shell-check
id: shellcheck
uses: redhat-plumbers-in-action/differential-shellcheck@v4
with:
severity: warning
token: ${{ secrets.GITHUB_TOKEN }}

- if: ${{ always() }}
name: 📤 Upload artifact with shell-check defects in SARIF format
uses: actions/upload-artifact@v3
with:
name: Differential shell-check SARIF
path: ${{ steps.shellcheck.outputs.sarif }}
uses: wayofdev/gh-actions/.github/workflows/shellcheck.yml@master
with:
os: ubuntu-latest
severity: warning
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ install: i ## Same as `make i`
.PHONY: install

update: ## Run pnpm to packages to their latest version based on the specified range
$(NPM_RUNNER) update
$(NPM_BIN) update
.PHONY: update

build: ## Build all packages inside monorepo
$(NPM_RUNNER) run build
$(NPM_BIN) run build
.PHONY: build

purge: ## Deletes node modules and temporary files
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@changesets/cli": "2.26.2",
"@commitlint/cli": "17.6.6",
"@commitlint/config-conventional": "17.6.6",
"@types/node": "18.16.19",
"@types/node": "20.4.2",
"@types/prettier": "2.7.3",
"@types/shell-quote": "1.7.1",
"@wayofdev/eslint-config-bases": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/browserslist-config/lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const rules = {
cwd: __dirname,
fix: true,
cache: true,
// when autofixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause
// when auto-fixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause
// a change here can potentially break things without proper visibility.
rules: ['react-hooks/exhaustive-deps: off'],
maxWarnings: 25,
Expand Down
4 changes: 2 additions & 2 deletions packages/browserslist-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"lint:fix": "eslint --ext .ts,.tsx,.js,.jsx,.mjs,.cjs,.mts,.cts --fix --cache --cache-location ../../.cache/eslint/browserslist-config.eslintcache"
},
"dependencies": {
"browserslist": "^4.21.5"
"browserslist": "^4.21.9"
},
"devDependencies": {
"rimraf": "^5.0.0"
"rimraf": "^5.0.1"
},
"peerDependencies": {
"@wayofdev/lint-staged-config": "^2.0.7"
Expand Down
2 changes: 1 addition & 1 deletion packages/commitlint-config/lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const rules = {
cwd: __dirname,
fix: true,
cache: true,
// when autofixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause
// when auto-fixing staged-files a good tip is to disable react-hooks/exhaustive-deps, cause
// a change here can potentially break things without proper visibility.
rules: ['react-hooks/exhaustive-deps: off'],
maxWarnings: 25,
Expand Down
4 changes: 2 additions & 2 deletions packages/commitlint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"@commitlint/config-conventional": "17.6.6"
},
"devDependencies": {
"@types/node": "^18.15.11",
"@types/node": "^20.4.2",
"es-check": "^7.1.1",
"rimraf": "^5.0.0"
"rimraf": "^5.0.1"
},
"peerDependencies": {
"@commitlint/cli": ">= 17",
Expand Down
50 changes: 25 additions & 25 deletions packages/eslint-config-bases/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,61 +108,61 @@
"dependencies": {
"@html-eslint/eslint-plugin": "^0.19.0",
"@html-eslint/parser": "^0.19.0",
"@rushstack/eslint-patch": "^1.2.0",
"@tanstack/eslint-plugin-query": "^4.29.0",
"@rushstack/eslint-patch": "^1.3.2",
"@tanstack/eslint-plugin-query": "^4.29.9",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jest-dom": "^5.0.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-jest-dom": "^5.0.1",
"eslint-plugin-jest-formatting": "^3.1.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-mdx": "^2.0.5",
"eslint-plugin-mdx": "^2.1.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-regexp": "^1.14.0",
"eslint-plugin-regexp": "^1.15.0",
"eslint-plugin-security": "^1.7.1",
"eslint-plugin-sonarjs": "^0.19.0",
"eslint-plugin-storybook": "^0.6.11",
"eslint-plugin-tailwindcss": "^3.11.0",
"eslint-plugin-testing-library": "^5.10.3",
"eslint-plugin-storybook": "^0.6.12",
"eslint-plugin-tailwindcss": "^3.13.0",
"eslint-plugin-testing-library": "^5.11.0",
"eslint-plugin-unicorn": "^48.0.0",
"prettier": "^3.0.0"
},
"devDependencies": {
"@graphql-eslint/eslint-plugin": "^3.18.0",
"@graphql-eslint/eslint-plugin": "^3.20.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.0",
"@types/node": "^18.15.11",
"@types/prettier": "^2.7.2",
"@types/react": "^18.0.35",
"@types/react-dom": "^18.0.11",
"@types/jest": "^29.5.3",
"@types/node": "^20.4.2",
"@types/prettier": "^2.7.3",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"es-check": "^7.1.1",
"eslint": "^8.38.0",
"graphql": "^16.6.0",
"eslint": "^8.45.0",
"graphql": "^16.7.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.0",
"tailwindcss": "^3.3.1",
"typescript": "^5.0.4"
"rimraf": "^5.0.1",
"tailwindcss": "^3.3.3",
"typescript": "^5.1.6"
},
"peerDependencies": {
"@graphql-eslint/eslint-plugin": "^3.17.0",
"@wayofdev/lint-staged-config": "^2.0.7",
"eslint": "^8.36.0",
"eslint": "^8.45.0",
"graphql": "^16.6.0",
"prettier": "^2.8.7 || ^3.0.0",
"prettier": "^3.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^3.2.7",
"typescript": "^5.0.2"
"typescript": "^5.1.6"
},
"peerDependenciesMeta": {
"@graphql-eslint/eslint-plugin": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const getDefaultIgnorePatterns = () => {
return [
// Hacky way to silence @yarnpkg/doctor about node_modules detection
`**/node_modules`,
'.cache',
`**/${'node'}_modules}`,
'**/.cache',
'**/build',
'**/dist',
Expand Down
2 changes: 1 addition & 1 deletion packages/htmlhint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"lint:fix": "eslint --ext .json --fix --cache --cache-location ../../.cache/eslint/htmlhint-config.eslintcache"
},
"devDependencies": {
"rimraf": "^5.0.0"
"rimraf": "^5.0.1"
},
"peerDependencies": {
"@wayofdev/lint-staged-config": "^2.0.7",
Expand Down
10 changes: 5 additions & 5 deletions packages/lint-staged-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@
"lint:types": "tsc --project tsconfig.json --noEmit"
},
"devDependencies": {
"@types/jest": "^29.5.0",
"@types/node": "^18.15.11",
"@types/prettier": "^2.7.2",
"@types/react": "^18.0.35",
"@types/react-dom": "^18.0.11",
"@types/jest": "^29.5.3",
"@types/node": "^20.4.2",
"@types/prettier": "^2.7.3",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"es-check": "^7.1.1"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"dependencies": {
"autoprefixer": "^10.4.14",
"postcss": "^8.4.22",
"postcss": "^8.4.26",
"postcss-100vh-fix": "^1.0.2",
"postcss-cli": "^10.1.0",
"postcss-flexbugs-fixes": "^5.0.2",
Expand Down
Loading

0 comments on commit cfe9dba

Please sign in to comment.