mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-15 16:32:36 +00:00
build: use yarn (#566)
This commit is contained in:
parent
d7c9fe4fd7
commit
828b013112
7 changed files with 3119 additions and 9772 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
|
@ -32,11 +32,12 @@ jobs:
|
||||||
uses: actions/setup-node@25316bbc1f10ac9d8798711f44914b1cf3c4e954 # renovate: tag=v2.4.0
|
uses: actions/setup-node@25316bbc1f10ac9d8798711f44914b1cf3c4e954 # renovate: tag=v2.4.0
|
||||||
with:
|
with:
|
||||||
node-version: '12.x'
|
node-version: '12.x'
|
||||||
cache: 'npm'
|
cache: 'yarn'
|
||||||
|
|
||||||
- name: Install project
|
- name: Install project
|
||||||
run: npm ci
|
run: yarn install --frozen-lockfile
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: npm run lint
|
run: yarn lint
|
||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -49,10 +50,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # renovate: tag=v2.3.4
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # renovate: tag=v2.3.4
|
||||||
|
|
||||||
- name: Install project
|
- name: Install project
|
||||||
run: npm ci
|
run: yarn install --frozen-lockfile
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: yarn build
|
||||||
|
|
||||||
- name: Configure renovate token
|
- name: Configure renovate token
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -105,12 +107,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: '12.x'
|
node-version: '12.x'
|
||||||
- name: Install project
|
- name: Install project
|
||||||
run: npm ci --ignore-scripts
|
run: yarn install --frozen-lockfile --ignore-scripts
|
||||||
- name: Get version
|
- name: Get version
|
||||||
id: release
|
id: release
|
||||||
run: npm run release:version
|
run: yarn release:version
|
||||||
- name: Release
|
- name: Release
|
||||||
run: npm run release -- "${{ steps.release.outputs.version }}"
|
run: yarn release -- "${{ steps.release.outputs.version }}"
|
||||||
- name: Get changelog section
|
- name: Get changelog section
|
||||||
id: changelog
|
id: changelog
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
npx --no-install commitlint --edit $1
|
yarn commitlint --edit $1
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
npx --no-install lint-staged
|
yarn lint-staged
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
'*.{ts,tsx,js,jsx,json}': ['npm run lint-es:file:fix'],
|
'*.{ts,tsx,js,jsx,json}': ['yarn lint-es:file:fix'],
|
||||||
'*.{vue,ts,css,less,scss,html,htm,md,markdown,yml,yaml}': [
|
'*.{vue,ts,css,less,scss,html,htm,md,markdown,yml,yaml}': [
|
||||||
'npm run format:file',
|
'yarn format:file',
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
9757
package-lock.json
generated
9757
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -7,8 +7,8 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"format": "prettier --write \"**/*.{js,jsx,vue,ts,css,less,scss,html,htm,json,md,markdown,yml,yaml}\"",
|
"format": "prettier --write \"**/*.{js,jsx,vue,ts,css,less,scss,html,htm,json,md,markdown,yml,yaml}\"",
|
||||||
"format:file": "prettier --write",
|
"format:file": "prettier --write",
|
||||||
"lint": "concurrently npm:lint-es",
|
"lint": "run-s lint-es",
|
||||||
"lint:fix": "concurrently npm:lint-es:fix",
|
"lint:fix": "run-s lint-es:fix",
|
||||||
"lint-es": "eslint --ext .ts,.tsx,.js,.jsx,.json .",
|
"lint-es": "eslint --ext .ts,.tsx,.js,.jsx,.json .",
|
||||||
"lint-es:file": "eslint --ext .ts,.tsx,.js,.jsx,.json",
|
"lint-es:file": "eslint --ext .ts,.tsx,.js,.jsx,.json",
|
||||||
"lint-es:fix": "eslint --ext .ts,.tsx,.js,.jsx,.json --fix .",
|
"lint-es:fix": "eslint --ext .ts,.tsx,.js,.jsx,.json --fix .",
|
||||||
|
|
@ -42,7 +42,6 @@
|
||||||
"@typescript-eslint/eslint-plugin": "4.29.1",
|
"@typescript-eslint/eslint-plugin": "4.29.1",
|
||||||
"@typescript-eslint/parser": "4.29.1",
|
"@typescript-eslint/parser": "4.29.1",
|
||||||
"@vercel/ncc": "0.29.1",
|
"@vercel/ncc": "0.29.1",
|
||||||
"concurrently": "6.2.1",
|
|
||||||
"eslint": "7.32.0",
|
"eslint": "7.32.0",
|
||||||
"eslint-config-prettier": "8.3.0",
|
"eslint-config-prettier": "8.3.0",
|
||||||
"eslint-plugin-json": "2.1.2",
|
"eslint-plugin-json": "2.1.2",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue