Skip to content

Commit

Permalink
Set up build Workflow (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
CatChen authored Aug 4, 2022
1 parent 572d4f1 commit 26d39fb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build

on:
pull_request:
branches: [main]
push:
branches: [main, "[0-9]+-[0-9]+-*"]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
check-latest: true

- name: Install dependencies
run: yarn install

- name: Build
run: yarn build

- name: Package
run: yarn package

- uses: CatChen/check-git-status-action@v1.0.0
with:
fail-if-not-clean: true
push-if-not-clean: true

0 comments on commit 26d39fb

Please sign in to comment.