Skip to content

Commit 28ee8ee

Browse files
committed
Update Github Action
1 parent 7db1159 commit 28ee8ee

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/commit.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,36 @@ jobs:
1111

1212
steps:
1313
- name: Cache
14-
uses: actions/cache@v2
14+
uses: actions/cache@v4
1515
with:
1616
path: ~/.npm
1717
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
1818
restore-keys: |
1919
${{ runner.os }}-node-
2020
2121
- name: Checkout
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
2323

2424
- name: Setup Node
25-
uses: actions/setup-node@v2
25+
uses: actions/setup-node@v4
2626
with:
27-
node-version: "16"
27+
node-version: "20"
2828

2929
- name: Install dependencies
3030
run: npm ci
3131

3232
- name: Lint
33-
run: npm run lint
33+
run: |
34+
npm run lint:types
35+
npm run lint:code
36+
npm run lint:web-ext
3437
3538
- name: Build
3639
run: npm run build
3740

3841
- name: Upload artifact
39-
uses: actions/upload-artifact@v2
42+
uses: actions/upload-artifact@v4
4043
with:
41-
name: Reverse-Image-Search-${{github.sha}}.zip
44+
name: Reverse-Image-Search-${{github.sha}}
4245
path: public/*
4346
if-no-files-found: error

0 commit comments

Comments
 (0)