From 3ea2d3a549dfb21026f956e8b308909bb2aca304 Mon Sep 17 00:00:00 2001 From: seasonyuu Date: Thu, 12 Sep 2024 10:23:26 +0800 Subject: [PATCH] ci: update publish scripts --- .github/workflows/publish-beta.yml | 12 +++++++++--- .github/workflows/publish-latest.yml | 8 +++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index 6bb372b..538e60a 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -8,10 +8,16 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 with: - node-version: '16.x' + submodules: true + - uses: actions/setup-node@v3 + with: + node-version: '18.x' + - run: | + sudo apt-get update + sudo apt-get install -y libxrandr-dev libxtst-dev + - run: yarn apply-libuiohook-patch - name: NPM config run: | npm config set //registry-lpm.listenai.com/:_password ${{ secrets.LPM_ZHUOBIN_TOKEN }} diff --git a/.github/workflows/publish-latest.yml b/.github/workflows/publish-latest.yml index 346e906..496ae18 100644 --- a/.github/workflows/publish-latest.yml +++ b/.github/workflows/publish-latest.yml @@ -8,10 +8,12 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 with: - node-version: '16.x' + submodules: true + - uses: actions/setup-node@v3 + with: + node-version: '18.x' - name: NPM config run: | npm config set //registry-lpm.listenai.com/:_password ${{ secrets.LPM_ZHUOBIN_TOKEN }}