Skip to content

Commit 6d9949b

Browse files
committed
feat: update ts
1 parent 6b3b6cf commit 6d9949b

File tree

7 files changed

+172503
-2898
lines changed

7 files changed

+172503
-2898
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 }}

0 commit comments

Comments
 (0)