From 4eec48d5424b86938ab57378cda483152c4c8ab9 Mon Sep 17 00:00:00 2001 From: razonyang Date: Mon, 30 Dec 2024 12:45:08 +0800 Subject: [PATCH] chore: add the build workflow --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a8aaa49 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: build + +on: + push: + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: npm ci + - run: npm run build + - name: Create Pull Request + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.MAINTAINER_TOKEN }}