Skip to content

Commit

Permalink
feat!: upgrade typescript version
Browse files Browse the repository at this point in the history
feat!: upgrade typescript version
  • Loading branch information
Gozala authored Jun 15, 2023
2 parents 6b3b6cf + 1d4f928 commit f18bfc2
Show file tree
Hide file tree
Showing 11 changed files with 857 additions and 2,922 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,29 @@ on:
- default
pull_request:
branches:
- '**'
- "**"

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [13.x]
node-version:
- 18
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- name: Checkout
uses: actions/checkout@v2
- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Restore dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: yarn install --frozen-lockfile
run: npm install
- name: Build
run: yarn build
run: npm run build
- name: Typecheck
uses: ./
- name: Typecheck projectFixtures/sub
uses: ./
with:
project: projectFixtures/sub

17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,29 @@ name: Release
on:
release:
types: [published, edited]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [13.x]
node-version:
- 18
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
ref: ${{ github.event.release.tag_name }}
- name: Restore dependencies
id: cache-modules
uses: actions/checkout@v2
with:
path: node_modules
key: ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('package.json') }}
node-version: ${{ matrix.node-version }}
- name: Install dependencies
if: steps.cache-modules.outputs.cache-hit != 'true'
run: npm install
- name: Build
run: npm run build
- name: Release
uses: JasonEtco/build-and-tag-action@v1
with:
setup: ''
setup: ""
env:
GITHUB_TOKEN: ${{ github.token }}
19 changes: 9 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: 'TypeScript Error Reporter'
description: 'Report type check result on PR diff view.'
author: 'andoshin11'
name: "TypeScript Error Reporter"
description: "Report type check result on PR diff view."
maintainer: "gozala"
runs:
using: 'node12'
main: 'dist/index.js'
using: "node16"
main: "dist/index.js"
branding:
icon: 'check-circle'
color: 'blue'
icon: "check-circle"
color: "blue"
inputs:
project:
description: 'Optional project path.'
description: "Optional project path."
required: false
error_fail_threshold:
description: 'Optional number of errors threshold at which this step fails.'
description: "Optional number of errors threshold at which this step fails."
required: false

Loading

0 comments on commit f18bfc2

Please sign in to comment.