Skip to content

Commit f18bfc2

Browse files
authored
feat!: upgrade typescript version
feat!: upgrade typescript version
2 parents 6b3b6cf + 1d4f928 commit f18bfc2

File tree

11 files changed

+857
-2922
lines changed

11 files changed

+857
-2922
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,29 @@ on:
88
- default
99
pull_request:
1010
branches:
11-
- '**'
11+
- "**"
1212

1313
jobs:
1414
test:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
node-version: [13.x]
18+
node-version:
19+
- 18
1920
steps:
20-
- uses: actions/checkout@v1
21-
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v1
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
- name: Setup node ${{ matrix.node-version }}
24+
uses: actions/setup-node@v2
2325
with:
2426
node-version: ${{ matrix.node-version }}
25-
- name: Restore dependencies
26-
uses: actions/cache@v1
27-
with:
28-
path: node_modules
29-
key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }}
30-
restore-keys: |
31-
${{ runner.os }}-node-
3227
- name: Install dependencies
33-
run: yarn install --frozen-lockfile
28+
run: npm install
3429
- name: Build
35-
run: yarn build
30+
run: npm run build
3631
- name: Typecheck
3732
uses: ./
3833
- name: Typecheck projectFixtures/sub
3934
uses: ./
4035
with:
4136
project: projectFixtures/sub
42-

.github/workflows/release.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,29 @@ name: Release
33
on:
44
release:
55
types: [published, edited]
6+
workflow_dispatch:
67

78
jobs:
89
build:
910
runs-on: ubuntu-latest
1011
strategy:
1112
matrix:
12-
node-version: [13.x]
13+
node-version:
14+
- 18
1315
steps:
1416
- name: Checkout
1517
uses: actions/checkout@v2
18+
- name: Setup node ${{ matrix.node-version }}
19+
uses: actions/setup-node@v2
1620
with:
17-
ref: ${{ github.event.release.tag_name }}
18-
- name: Restore dependencies
19-
id: cache-modules
20-
uses: actions/checkout@v2
21-
with:
22-
path: node_modules
23-
key: ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('package.json') }}
21+
node-version: ${{ matrix.node-version }}
2422
- name: Install dependencies
25-
if: steps.cache-modules.outputs.cache-hit != 'true'
2623
run: npm install
2724
- name: Build
2825
run: npm run build
2926
- name: Release
3027
uses: JasonEtco/build-and-tag-action@v1
3128
with:
32-
setup: ''
29+
setup: ""
3330
env:
3431
GITHUB_TOKEN: ${{ github.token }}

action.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
name: 'TypeScript Error Reporter'
2-
description: 'Report type check result on PR diff view.'
3-
author: 'andoshin11'
1+
name: "TypeScript Error Reporter"
2+
description: "Report type check result on PR diff view."
3+
maintainer: "gozala"
44
runs:
5-
using: 'node12'
6-
main: 'dist/index.js'
5+
using: "node16"
6+
main: "dist/index.js"
77
branding:
8-
icon: 'check-circle'
9-
color: 'blue'
8+
icon: "check-circle"
9+
color: "blue"
1010
inputs:
1111
project:
12-
description: 'Optional project path.'
12+
description: "Optional project path."
1313
required: false
1414
error_fail_threshold:
15-
description: 'Optional number of errors threshold at which this step fails.'
15+
description: "Optional number of errors threshold at which this step fails."
1616
required: false
17-

0 commit comments

Comments
 (0)