-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 955 Bytes
/
release.yml
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
# This is a basic workflow that is manually triggered
name: Build & Release
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "greet"
release:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: refs/heads/master
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Yarn install
run: yarn install --frozen-lockfile
- name: Semantic Release
run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}