31 lines
593 B
YAML
31 lines
593 B
YAML
name: 'Build & Release'
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build-release:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3.0.0
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v3.1.1
|
|
with:
|
|
node-version: 18.x
|
|
|
|
- name: Install dependencies
|
|
run: yarn --frozen-lockfile
|
|
|
|
- name: Building project
|
|
run: yarn build
|
|
|
|
- name: Release project
|
|
run: yarn release
|
|
env:
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|