Browse Source

chore: upgrade workflows version

pull/11358/head
afc163 1 year ago
parent
commit
a128e3b878
  1. 6
      .github/dependabot.yml
  2. 11
      .github/workflows/ci.yml
  3. 10
      .github/workflows/codeql.yml
  4. 6
      .github/workflows/pnpm.yml
  5. 5
      .lintstagedrc
  6. 6
      package.json
  7. 12143
      pnpm-lock.yaml

6
.github/dependabot.yml

@ -5,7 +5,7 @@
version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: '' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "weekly"
interval: 'weekly'

11
.github/workflows/ci.yml

@ -1,4 +1,4 @@
name: Node CI
name: CI
on: [push, pull_request]
@ -19,10 +19,11 @@ jobs:
with:
node-version: ${{ matrix.node_version }}
- run: echo ${{github.ref}}
- run: npm install
- run: yarn run lint
- run: yarn run tsc
- run: yarn run build
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun run lint
- run: bun run tsc
- run: bun run build
env:
CI: true
PROGRESS: none

10
.github/workflows/codeql.yml

@ -1,12 +1,12 @@
name: "CodeQL"
name: 'CodeQL'
on:
push:
branches: [ "master" ]
branches: ['master']
pull_request:
branches: [ "master" ]
branches: ['master']
schedule:
- cron: "48 12 * * 2"
- cron: '48 12 * * 2'
jobs:
analyze:
@ -38,4 +38,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
category: '/language:${{ matrix.language }}'

6
.github/workflows/pnpm.yml

@ -10,12 +10,12 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [16.x]
node_version: [20, 16]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
uses: actions/setup-node@4
with:
node-version: ${{ matrix.node_version }}
- run: echo ${{github.ref}}

5
.lintstagedrc

@ -1,3 +1,6 @@
{
"*": "prettier --ignore-unknown --write"
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
"**/*.{js,jsx,tsx,ts,less,md,json,yml}": [
"prettier --write"
]
}

6
package.json

@ -35,12 +35,6 @@
"test:update": "npm run jest -- -u",
"tsc": "tsc --noEmit"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
"**/*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write"
]
},
"browserslist": [
"defaults"
],

12143
pnpm-lock.yaml

File diff suppressed because it is too large
Loading…
Cancel
Save