2022-08-13 15:12:53 +02:00
|
|
|
name: 'Build & Release'
|
2022-05-16 14:15:29 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-05-16 21:34:00 +02:00
|
|
|
branches: [master]
|
2022-05-16 14:15:29 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-08-13 15:12:53 +02:00
|
|
|
ci:
|
2022-05-16 14:15:29 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.ref == 'refs/heads/master' }}
|
|
|
|
needs: [quality]
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3.0.0
|
|
|
|
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v3.1.1
|
|
|
|
with:
|
|
|
|
node-version: 16.x
|
|
|
|
|
|
|
|
- name: Install packages
|
2022-05-25 22:44:01 +02:00
|
|
|
run: yarn --frozen-lockfile
|
2022-05-16 14:15:29 +02:00
|
|
|
|
2022-08-13 15:12:53 +02:00
|
|
|
- name: Building project
|
|
|
|
run: yarn build
|
|
|
|
|
2022-05-16 14:15:29 +02:00
|
|
|
- name: Release project
|
2022-05-25 22:44:01 +02:00
|
|
|
run: yarn release
|
2022-05-16 14:15:29 +02:00
|
|
|
env:
|
|
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|