2020-12-20 22:43:25 +00:00
|
|
|
name: Release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-01-15 09:21:36 +00:00
|
|
|
- main
|
2020-12-20 22:43:25 +00:00
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Node.js
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 14
|
2021-03-30 18:28:55 +00:00
|
|
|
- name: Setup timezone
|
|
|
|
uses: zcong1993/setup-timezone@master
|
|
|
|
with:
|
|
|
|
timezone: Europe/Stockholm
|
2020-12-20 22:43:25 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn install --immutable --silent --non-interactive 2> >(grep -v warning 1>&2)
|
2021-01-15 13:21:09 +00:00
|
|
|
- name: Build
|
|
|
|
run: yarn build
|
2020-12-20 22:43:25 +00:00
|
|
|
- name: Release
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
2021-01-15 09:21:36 +00:00
|
|
|
run: npx semantic-release
|