From de36bdaed752fba5025c992a646bb61d6bcdf8db Mon Sep 17 00:00:00 2001 From: sealday Date: Fri, 19 Apr 2024 08:19:40 +0800 Subject: [PATCH] feat: support-actions (#758) Co-authored-by: sealday Reviewed-on: https://git.daoyoucloud.com/daoyoucloud/tachybase/pulls/758 --- .gitea/workflows/on_pr.yaml | 26 ++++++++++++++++++++++++++ package.json | 7 +------ 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 .gitea/workflows/on_pr.yaml diff --git a/.gitea/workflows/on_pr.yaml b/.gitea/workflows/on_pr.yaml new file mode 100644 index 000000000..79ee18056 --- /dev/null +++ b/.gitea/workflows/on_pr.yaml @@ -0,0 +1,26 @@ +name: PR Workflow +on: + pull_request: + branches: + - dev + +permissions: + contents: write + +jobs: + CI: + runs-on: ubuntu-latest + container: node:20 + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: config registry + run: npm config set registry https://npm.daoyoucloud.com/ + - name: install pnpm + uses: pnpm/action-setup@v3 + with: + standalone: true + - name: Install dependencies + run: pnpm install + - name: Build + run: pnpm build:p diff --git a/package.json b/package.json index 193a0409d..259c27f96 100644 --- a/package.json +++ b/package.json @@ -96,10 +96,5 @@ "@types/node": "^20.12.2" } }, - "licenses": [ - { - "type": "Apache-2.0", - "url": "https://www.apache.org/licenses/LICENSE-2.0" - } - ] + "licenses": "Apache-2.0" }