Skip to content

Commit

Permalink
Use int128/release-typescript-action@v1 (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Feb 14, 2022
1 parent 7be1c45 commit d78b32a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 49 deletions.
14 changes: 0 additions & 14 deletions .github/actions/release/action.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/actions/release/run.sh

This file was deleted.

21 changes: 8 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,24 @@ name: release

on:
pull_request:
branches: [main]
paths:
- .github/workflows/release.yaml
push:
branches: [main]
branches:
- main
tags:
- v*

jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: yarn-cache-dir
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
- uses: actions/setup-node@v2
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: 16
cache: yarn
- run: yarn
- run: yarn build
- run: yarn package
- if: github.event_name == 'push'
uses: ./.github/actions/release
with:
tag-name: v1
- uses: int128/release-typescript-action@v1
12 changes: 5 additions & 7 deletions .github/workflows/ts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,26 @@ on:
- src/**
- tests/**
- '*.json'
- action.yaml
- .github/workflows/ts.yaml
pull_request:
branches: [main]
paths:
- src/**
- tests/**
- '*.json'
- action.yaml
- .github/workflows/ts.yaml

jobs:
ts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: yarn-cache-dir
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
- uses: actions/setup-node@v2
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: 16
cache: yarn
- run: yarn
- run: yarn lint
- run: yarn format-check
Expand Down

0 comments on commit d78b32a

Please sign in to comment.