Skip to content
This repository was archived by the owner on Nov 13, 2021. It is now read-only.

Commit 3240022

Browse files
committed
chore(release): fix release
1 parent 5847b01 commit 3240022

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

.github/workflows/CI.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
ci:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
- name: Read Node.js version to install from `.nvmrc`
19+
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
20+
id: nvm
21+
- name: Install required Node.js version
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: "${{ steps.nvm.outputs.NVMRC }}"
25+
- name: Get Yarn cache directory path
26+
id: yarn-cache
27+
run: echo "::set-output name=dir::$(yarn cache dir)"
28+
- name: Setup cache key and directory for node_modules cache
29+
uses: actions/cache@v1
30+
with:
31+
path: ${{ steps.yarn-cache.outputs.dir }}
32+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
33+
- name: Yarn install
34+
run: yarn --frozen-lockfile
35+
- name: Test
36+
run: yarn test
37+
- name: Release
38+
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/next')
39+
run: yarn semantic-release
40+
env:
41+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
42+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/main.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)