-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 864 Bytes
/
Build.yml
File metadata and controls
32 lines (32 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Build
on:
workflow_dispatch:
push:
jobs:
install:
name: Build 🔧
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- uses: actions/checkout@master
- id: node-cache
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-${{ github.repository }}-node-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ github.repository }}-node-modules-
- if: steps.node-cache.outputs.cache-hit != 'true'
run: yarn install
- name: Build 🔧
run: yarn build:tsc
- uses: corcc/publish@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TASK_NAME: 🔧
TIMEZONE: 'Asia/Tokyo'