Skip to content

Commit

Permalink
feat: update ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozala committed Jun 15, 2023
1 parent 6b3b6cf commit 6d9949b
Show file tree
Hide file tree
Showing 7 changed files with 172,503 additions and 2,898 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 }}
Loading

0 comments on commit 6d9949b

Please sign in to comment.