Merge branch 'main' into validate-cmd-file

This commit is contained in:
Maarten Groeneweg 2024-02-09 16:49:28 +01:00 committed by GitHub
commit 59bbbe1d8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 3843 additions and 4750 deletions

View file

@ -11,7 +11,7 @@ concurrency:
env:
NODE_VERSION: 20
RENOVATE_VERSION: 37.176.0 # renovate: datasource=docker depName=renovate packageName=ghcr.io/renovatebot/renovate
RENOVATE_VERSION: 37.180.0 # renovate: datasource=docker depName=renovate packageName=ghcr.io/renovatebot/renovate
jobs:
commitlint:
@ -23,6 +23,9 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
show-progress: false
filter: blob:none # we don't need all blobs, only the full tree
- name: Lint commit messages
uses: wagoid/commitlint-github-action@5ce82f5d814d4010519d15f0552aec4f17a1e1fe # v5.4.5
continue-on-error: true
@ -34,19 +37,25 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
show-progress: false
- name: enable corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
cache: pnpm
- name: enable corepack
run: corepack enable
- name: Install project
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile
- name: Lint
run: yarn lint
run: pnpm lint
e2e:
runs-on: ubuntu-latest
@ -59,21 +68,26 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
show-progress: false
- name: enable corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
cache: pnpm
- name: enable corepack
run: corepack enable
- name: Install project
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile
- name: Build
run: yarn build
run: pnpm build
- name: Configure renovate token
run: |
@ -115,13 +129,14 @@ jobs:
git config --global core.symlinks true
git config --global user.email 'bot@renovateapp.com'
git config --global user.name 'Renovate Bot'
yarn config set version-git-tag false
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
fetch-depth: 0 # required for semantic release
ref: 'release'
show-progress: false
filter: blob:none # we don't need all blobs, only the full tree
- name: fetch pr
if: ${{github.event_name == 'pull_request'}}
@ -133,17 +148,20 @@ jobs:
git merge --no-ff -Xtheirs -m 'skip: merge (${{ github.sha }}) [skip release]' ${{ github.sha }}
commit=$(git rev-parse HEAD)
- name: enable corepack
run: corepack enable
- name: Setup node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
cache: pnpm
- name: enable corepack
run: corepack enable
- name: Install project
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile
- name: Push release branch
run: git push origin release:release
@ -153,7 +171,7 @@ jobs:
run: |
# override for semantic-release
export GITHUB_REF=refs/heads/release GITHUB_SHA=${{ steps.merge.outputs.commit }}
yarn release
pnpm release
if: ${{ github.ref_name == github.event.repository.default_branch }}
env:
GITHUB_TOKEN: ${{ github.token }}

5
.gitignore vendored
View file

@ -187,7 +187,7 @@ typings/
# nuxt.js build output
.nuxt
# react / gatsby
# react / gatsby
public/
# vuepress build output
@ -300,3 +300,6 @@ dkms.conf
*.exe
*.out
*.app
/.pnpm-store

View file

@ -1,4 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn commitlint --edit $1
pnpm commitlint --edit "$1"

View file

@ -1,4 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged
pnpm lint-staged

View file

@ -1,4 +1,7 @@
{
"*.{ts,tsx,js,jsx,json}": "eslint --fix",
"*": "prettier --ignore-unknown --write"
"*.{ts,tsx,js,jsx,json}": [
"eslint --cache --fix",
"prettier --cache --write"
],
"!*.{ts,tsx,js,jsx,json}": "prettier --cache --ignore-unknown --write"
}

5
.npmrc
View file

@ -1 +1,6 @@
save-exact=true
save-prefix =
# pnpm run settings
# https://pnpm.io/cli/run
shell-emulator = true

View file

@ -6,3 +6,6 @@ coverage/
LICENSE.md
modules/
node_modules/
/.pnpm-store
/pnpm-lock.yaml

View file

@ -15,8 +15,8 @@
},
"main": "src/index.ts",
"engines": {
"node": ">=20.11.0",
"yarn": "^1.22.0"
"node": ">=20.9.0",
"pnpm": "^8.0.0"
},
"scripts": {
"build": "run-s clean compile",
@ -28,7 +28,7 @@
"lint-es:file:fix": "eslint --fix",
"lint-es:fix": "eslint --fix .",
"lint:fix": "run-s lint-es:fix prettier-fix",
"prepare": "husky install",
"prepare": "husky",
"prettier": "prettier --cache --check --ignore-unknown \"{**/*,*}.*\"",
"prettier-fix": "prettier --cache --write --ignore-unknown \"{**/*,*}.*\"",
"release": "run-s clean build semantic-release",
@ -46,7 +46,7 @@
"@semantic-release/github": "9.2.6",
"@semantic-release/npm": "11.0.2",
"@tsconfig/node20": "20.1.2",
"@types/node": "20.11.15",
"@types/node": "20.11.16",
"@typescript-eslint/eslint-plugin": "6.20.0",
"@typescript-eslint/parser": "6.20.0",
"@vercel/ncc": "0.38.1",
@ -54,7 +54,7 @@
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-json": "3.1.0",
"husky": "8.0.3",
"husky": "9.0.10",
"lint-staged": "15.2.1",
"npm-run-all2": "6.1.2",
"prettier": "2.8.8",
@ -64,5 +64,16 @@
"ts-node": "10.9.2",
"typescript": "5.3.3"
},
"packageManager": "yarn@1.22.21"
"packageManager": "pnpm@8.15.1",
"pnpm": {
"supportedArchitectures": {
"os": [
"linux",
"win32"
],
"cpu": [
"x64"
]
}
}
}

3777
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load diff

4725
yarn.lock

File diff suppressed because it is too large Load diff