-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1009 Bytes
/
Build.yml
File metadata and controls
37 lines (37 loc) · 1009 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
33
34
35
36
37
name: Build and Test
on:
workflow_dispatch:
push:
jobs:
job:
name: Build 🔧
runs-on: ubuntu-latest
strategy:
matrix:
yarn:
- 'rm -rf dist build && yarn build:tsc:noargs'
- 'yarn test:request'
steps:
- 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
- run: |
${{ matrix.yarn }}
- uses: corcc/publish@master
if: ${{ contains(matrix.yarn, 'build') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TASK_NAME: 🔧
TIMEZONE: 'Asia/Tokyo'