2021-02-05 13:55:52 +00:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-02-05 14:00:06 +00:00
|
|
|
- main
|
2021-02-05 13:55:52 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
2021-02-19 10:40:06 +00:00
|
|
|
|
2021-02-05 13:55:52 +00:00
|
|
|
- name: Setup Node
|
|
|
|
uses: actions/setup-node@v1
|
2021-02-15 11:11:22 +00:00
|
|
|
with:
|
|
|
|
node-version: '14'
|
2021-02-05 13:55:52 +00:00
|
|
|
|
2021-02-19 10:43:29 +00:00
|
|
|
- name: Setup timezone
|
|
|
|
uses: zcong1993/setup-timezone@master
|
2021-02-19 10:40:06 +00:00
|
|
|
with:
|
2021-02-19 10:43:29 +00:00
|
|
|
timezone: Europe/Stockholm
|
2021-02-19 10:40:06 +00:00
|
|
|
|
2021-02-05 13:55:52 +00:00
|
|
|
- name: Install dependencies
|
2021-02-08 12:22:32 +00:00
|
|
|
run: npx lerna bootstrap
|
2021-02-05 13:55:52 +00:00
|
|
|
|
|
|
|
- name: Run tests
|
2021-02-08 12:22:32 +00:00
|
|
|
run: yarn test
|
2021-02-05 13:55:52 +00:00
|
|
|
env:
|
|
|
|
CI: true
|
2021-02-21 14:51:04 +00:00
|
|
|
|
|
|
|
- name: Create release using semantic-release
|
|
|
|
uses: cycjimmy/semantic-release-action@v2
|
|
|
|
with:
|
|
|
|
semantic_version: 17.1.1
|
|
|
|
extra_plugins: |
|
|
|
|
@semantic-release/changelog@5.0.1
|
|
|
|
@semantic-release/git@9.0
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|