mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-19 11:27:08 +00:00
Merge branch 'main' into validate-cmd-file
This commit is contained in:
commit
59bbbe1d8d
10 changed files with 3843 additions and 4750 deletions
42
.github/workflows/build.yml
vendored
42
.github/workflows/build.yml
vendored
|
|
@ -11,7 +11,7 @@ concurrency:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: 20
|
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:
|
jobs:
|
||||||
commitlint:
|
commitlint:
|
||||||
|
|
@ -23,6 +23,9 @@ jobs:
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
show-progress: false
|
||||||
|
filter: blob:none # we don't need all blobs, only the full tree
|
||||||
|
|
||||||
- name: Lint commit messages
|
- name: Lint commit messages
|
||||||
uses: wagoid/commitlint-github-action@5ce82f5d814d4010519d15f0552aec4f17a1e1fe # v5.4.5
|
uses: wagoid/commitlint-github-action@5ce82f5d814d4010519d15f0552aec4f17a1e1fe # v5.4.5
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
@ -34,19 +37,25 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
|
with:
|
||||||
|
show-progress: false
|
||||||
|
|
||||||
|
- name: enable corepack
|
||||||
|
run: corepack enable
|
||||||
|
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
cache: yarn
|
cache: pnpm
|
||||||
|
|
||||||
- name: enable corepack
|
- name: enable corepack
|
||||||
run: corepack enable
|
run: corepack enable
|
||||||
|
|
||||||
- name: Install project
|
- name: Install project
|
||||||
run: yarn install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: yarn lint
|
run: pnpm lint
|
||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -59,21 +68,26 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
|
with:
|
||||||
|
show-progress: false
|
||||||
|
|
||||||
|
- name: enable corepack
|
||||||
|
run: corepack enable
|
||||||
|
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
cache: yarn
|
cache: pnpm
|
||||||
|
|
||||||
- name: enable corepack
|
- name: enable corepack
|
||||||
run: corepack enable
|
run: corepack enable
|
||||||
|
|
||||||
- name: Install project
|
- name: Install project
|
||||||
run: yarn install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn build
|
run: pnpm build
|
||||||
|
|
||||||
- name: Configure renovate token
|
- name: Configure renovate token
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -115,13 +129,14 @@ jobs:
|
||||||
git config --global core.symlinks true
|
git config --global core.symlinks true
|
||||||
git config --global user.email 'bot@renovateapp.com'
|
git config --global user.email 'bot@renovateapp.com'
|
||||||
git config --global user.name 'Renovate Bot'
|
git config --global user.name 'Renovate Bot'
|
||||||
yarn config set version-git-tag false
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0 # required for semantic release
|
||||||
ref: 'release'
|
ref: 'release'
|
||||||
|
show-progress: false
|
||||||
|
filter: blob:none # we don't need all blobs, only the full tree
|
||||||
|
|
||||||
- name: fetch pr
|
- name: fetch pr
|
||||||
if: ${{github.event_name == 'pull_request'}}
|
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 }}
|
git merge --no-ff -Xtheirs -m 'skip: merge (${{ github.sha }}) [skip release]' ${{ github.sha }}
|
||||||
commit=$(git rev-parse HEAD)
|
commit=$(git rev-parse HEAD)
|
||||||
|
|
||||||
|
- name: enable corepack
|
||||||
|
run: corepack enable
|
||||||
|
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
cache: yarn
|
cache: pnpm
|
||||||
|
|
||||||
- name: enable corepack
|
- name: enable corepack
|
||||||
run: corepack enable
|
run: corepack enable
|
||||||
|
|
||||||
- name: Install project
|
- name: Install project
|
||||||
run: yarn install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Push release branch
|
- name: Push release branch
|
||||||
run: git push origin release:release
|
run: git push origin release:release
|
||||||
|
|
@ -153,7 +171,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
# override for semantic-release
|
# override for semantic-release
|
||||||
export GITHUB_REF=refs/heads/release GITHUB_SHA=${{ steps.merge.outputs.commit }}
|
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 }}
|
if: ${{ github.ref_name == github.event.repository.default_branch }}
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
|
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -300,3 +300,6 @@ dkms.conf
|
||||||
*.exe
|
*.exe
|
||||||
*.out
|
*.out
|
||||||
*.app
|
*.app
|
||||||
|
|
||||||
|
|
||||||
|
/.pnpm-store
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
|
||||||
|
|
||||||
yarn commitlint --edit $1
|
pnpm commitlint --edit "$1"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
|
||||||
|
|
||||||
yarn lint-staged
|
pnpm lint-staged
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
{
|
{
|
||||||
"*.{ts,tsx,js,jsx,json}": "eslint --fix",
|
"*.{ts,tsx,js,jsx,json}": [
|
||||||
"*": "prettier --ignore-unknown --write"
|
"eslint --cache --fix",
|
||||||
|
"prettier --cache --write"
|
||||||
|
],
|
||||||
|
"!*.{ts,tsx,js,jsx,json}": "prettier --cache --ignore-unknown --write"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
5
.npmrc
5
.npmrc
|
|
@ -1 +1,6 @@
|
||||||
save-exact=true
|
save-exact=true
|
||||||
|
save-prefix =
|
||||||
|
|
||||||
|
# pnpm run settings
|
||||||
|
# https://pnpm.io/cli/run
|
||||||
|
shell-emulator = true
|
||||||
|
|
|
||||||
|
|
@ -6,3 +6,6 @@ coverage/
|
||||||
LICENSE.md
|
LICENSE.md
|
||||||
modules/
|
modules/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|
||||||
|
/.pnpm-store
|
||||||
|
/pnpm-lock.yaml
|
||||||
|
|
|
||||||
23
package.json
23
package.json
|
|
@ -15,8 +15,8 @@
|
||||||
},
|
},
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20.11.0",
|
"node": ">=20.9.0",
|
||||||
"yarn": "^1.22.0"
|
"pnpm": "^8.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "run-s clean compile",
|
"build": "run-s clean compile",
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
"lint-es:file:fix": "eslint --fix",
|
"lint-es:file:fix": "eslint --fix",
|
||||||
"lint-es:fix": "eslint --fix .",
|
"lint-es:fix": "eslint --fix .",
|
||||||
"lint:fix": "run-s lint-es:fix prettier-fix",
|
"lint:fix": "run-s lint-es:fix prettier-fix",
|
||||||
"prepare": "husky install",
|
"prepare": "husky",
|
||||||
"prettier": "prettier --cache --check --ignore-unknown \"{**/*,*}.*\"",
|
"prettier": "prettier --cache --check --ignore-unknown \"{**/*,*}.*\"",
|
||||||
"prettier-fix": "prettier --cache --write --ignore-unknown \"{**/*,*}.*\"",
|
"prettier-fix": "prettier --cache --write --ignore-unknown \"{**/*,*}.*\"",
|
||||||
"release": "run-s clean build semantic-release",
|
"release": "run-s clean build semantic-release",
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
"@semantic-release/github": "9.2.6",
|
"@semantic-release/github": "9.2.6",
|
||||||
"@semantic-release/npm": "11.0.2",
|
"@semantic-release/npm": "11.0.2",
|
||||||
"@tsconfig/node20": "20.1.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/eslint-plugin": "6.20.0",
|
||||||
"@typescript-eslint/parser": "6.20.0",
|
"@typescript-eslint/parser": "6.20.0",
|
||||||
"@vercel/ncc": "0.38.1",
|
"@vercel/ncc": "0.38.1",
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
"eslint": "8.56.0",
|
"eslint": "8.56.0",
|
||||||
"eslint-config-prettier": "9.1.0",
|
"eslint-config-prettier": "9.1.0",
|
||||||
"eslint-plugin-json": "3.1.0",
|
"eslint-plugin-json": "3.1.0",
|
||||||
"husky": "8.0.3",
|
"husky": "9.0.10",
|
||||||
"lint-staged": "15.2.1",
|
"lint-staged": "15.2.1",
|
||||||
"npm-run-all2": "6.1.2",
|
"npm-run-all2": "6.1.2",
|
||||||
"prettier": "2.8.8",
|
"prettier": "2.8.8",
|
||||||
|
|
@ -64,5 +64,16 @@
|
||||||
"ts-node": "10.9.2",
|
"ts-node": "10.9.2",
|
||||||
"typescript": "5.3.3"
|
"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
3777
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue