From 0c934f8df2685c3e3b2b2a557233962b169453ed Mon Sep 17 00:00:00 2001 From: yutent Date: Sun, 19 Feb 2023 14:52:56 +0800 Subject: [PATCH] Create main.yaml --- .github/workflows/main.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..9cdcf7b --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,23 @@ + +name: CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-node@v3 + with: + node-version: 18.10.0 + + - name: 安装依赖并编译 + run: | + npm i + npm run build