2022-08-13 15:12:53 +02:00
|
|
|
name: 'Build & Release'
|
2022-05-16 14:15:29 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-02-10 12:44:23 +01:00
|
|
|
branches: [main]
|
2022-05-16 14:15:29 +02:00
|
|
|
|
|
|
|
jobs:
|
2022-08-13 20:46:35 +02:00
|
|
|
build-release:
|
2022-05-16 14:15:29 +02:00
|
|
|
runs-on: ubuntu-latest
|
2022-08-13 21:06:41 +02:00
|
|
|
|
2022-05-16 14:15:29 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3.0.0
|
|
|
|
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v3.1.1
|
|
|
|
with:
|
2023-02-10 12:51:16 +01:00
|
|
|
node-version: 18.x
|
2022-05-16 14:15:29 +02:00
|
|
|
|
2022-08-14 02:02:23 +02:00
|
|
|
- name: Install dependencies
|
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 }}
|