Skip to content

Commit a128e3b

Browse files
committed
chore: upgrade workflows version
1 parent 0946731 commit a128e3b

File tree

7 files changed

+11061
-3782
lines changed

7 files changed

+11061
-3782
lines changed

β€Ž.github/dependabot.ymlβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: "" # See documentation for possible values
9-
directory: "/" # Location of package manifests
8+
- package-ecosystem: '' # See documentation for possible values
9+
directory: '/' # Location of package manifests
1010
schedule:
11-
interval: "weekly"
11+
interval: 'weekly'

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node CI
1+
name: CI
22

33
on: [push, pull_request]
44

@@ -19,10 +19,11 @@ jobs:
1919
with:
2020
node-version: ${{ matrix.node_version }}
2121
- run: echo ${{github.ref}}
22-
- run: npm install
23-
- run: yarn run lint
24-
- run: yarn run tsc
25-
- run: yarn run build
22+
- uses: oven-sh/setup-bun@v2
23+
- run: bun install
24+
- run: bun run lint
25+
- run: bun run tsc
26+
- run: bun run build
2627
env:
2728
CI: true
2829
PROGRESS: none

β€Ž.github/workflows/codeql.ymlβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: "CodeQL"
1+
name: 'CodeQL'
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches: ['master']
66
pull_request:
7-
branches: [ "master" ]
7+
branches: ['master']
88
schedule:
9-
- cron: "48 12 * * 2"
9+
- cron: '48 12 * * 2'
1010

1111
jobs:
1212
analyze:
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
language: [ javascript ]
23+
language: [javascript]
2424

2525
steps:
2626
- name: Checkout
@@ -38,4 +38,4 @@ jobs:
3838
- name: Perform CodeQL Analysis
3939
uses: github/codeql-action/analyze@v2
4040
with:
41-
category: "/language:${{ matrix.language }}"
41+
category: '/language:${{ matrix.language }}'

β€Ž.github/workflows/pnpm.ymlβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
node_version: [16.x]
13+
node_version: [20, 16]
1414
os: [ubuntu-latest, windows-latest, macOS-latest]
1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v4
1717
- name: Use Node.js ${{ matrix.node_version }}
18-
uses: actions/setup-node@v1
18+
uses: actions/setup-node@4
1919
with:
2020
node-version: ${{ matrix.node_version }}
2121
- run: echo ${{github.ref}}
2222
- run: curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7
2323
- run: pnpm config set store-dir ~/.pnpm-store
24-
- run: pnpm install --strict-peer-dependencies=false
24+
- run: pnpm install --strict-peer-dependencies=false
2525
- run: pnpm run lint
2626
- run: pnpm run tsc
2727
- run: pnpm run build

β€Ž.lintstagedrcβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"*": "prettier --ignore-unknown --write"
2+
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
3+
"**/*.{js,jsx,tsx,ts,less,md,json,yml}": [
4+
"prettier --write"
5+
]
36
}

β€Žpackage.jsonβ€Ž

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@
3535
"test:update": "npm run jest -- -u",
3636
"tsc": "tsc --noEmit"
3737
},
38-
"lint-staged": {
39-
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
40-
"**/*.{js,jsx,tsx,ts,less,md,json}": [
41-
"prettier --write"
42-
]
43-
},
4438
"browserslist": [
4539
"defaults"
4640
],

0 commit comments

Comments
Β (0)