From a720b02a71038a49af5c6bb3180aec4f42ba9021 Mon Sep 17 00:00:00 2001 From: Bao Zhiyuan Date: Fri, 13 Dec 2024 17:30:34 +0800 Subject: [PATCH] tweak ci --- .github/workflows/release.yml | 4 ---- .github/workflows/tour-check.yml | 19 +++++++++++++++++++ .github/workflows/tour-page.yml | 4 +--- .github/workflows/website-check.yml | 2 -- moonbit-tour/package.json | 1 - 5 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/tour-check.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea56977a..b627349c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,8 +12,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - with: - version: 9 - name: install run: | pnpm install @@ -36,8 +34,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - with: - version: 9 - name: install run: | pnpm install diff --git a/.github/workflows/tour-check.yml b/.github/workflows/tour-check.yml new file mode 100644 index 00000000..fb70096d --- /dev/null +++ b/.github/workflows/tour-check.yml @@ -0,0 +1,19 @@ +name: check langauge tour + +on: + pull_request: + branches: main + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - name: install + run: | + pnpm install + - name: check + run: | + cd moonbit-tour + pnpm build diff --git a/.github/workflows/tour-page.yml b/.github/workflows/tour-page.yml index 0ccc53ee..36717d73 100644 --- a/.github/workflows/tour-page.yml +++ b/.github/workflows/tour-page.yml @@ -34,11 +34,9 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v5 - uses: pnpm/action-setup@v4 - with: - version: 9 + - run: pnpm install - run: | cd moonbit-tour - pnpm install pnpm build - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/.github/workflows/website-check.yml b/.github/workflows/website-check.yml index 51a254e1..3941c171 100644 --- a/.github/workflows/website-check.yml +++ b/.github/workflows/website-check.yml @@ -10,8 +10,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v4 - with: - version: 9 - name: install run: | pnpm install diff --git a/moonbit-tour/package.json b/moonbit-tour/package.json index f53ec973..9996b6a6 100644 --- a/moonbit-tour/package.json +++ b/moonbit-tour/package.json @@ -27,7 +27,6 @@ "unified": "^11.0.5", "vite": "^6.0.1" }, - "packageManager": "pnpm@9.14.4+sha512.c8180b3fbe4e4bca02c94234717896b5529740a6cbadf19fa78254270403ea2f27d4e1d46a08a0f56c89b63dc8ebfd3ee53326da720273794e6200fcf0d184ab", "dependencies": { "@moonbit/moonpad-monaco": "^0.1.202412060", "monaco-editor-core": "^0.52.0"