Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
5012686931
1 changed files with 11 additions and 5 deletions
16
.github/workflows/cd.yml
vendored
16
.github/workflows/cd.yml
vendored
|
@ -7,7 +7,6 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
create_release:
|
||||
name: Create Release
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -15,6 +14,7 @@ jobs:
|
|||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
release_version: ${{ steps.release_info.outputs.release_version }}
|
||||
version: ${{ steps.version.outputs.value }}
|
||||
packageManager: ${{ steps.packageManager.outputs.value }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
@ -53,6 +53,12 @@ jobs:
|
|||
with:
|
||||
cmd: 'jq .version app/package.json -r'
|
||||
|
||||
- name: Extract packageManager from package.json
|
||||
uses: sergeysova/jq-action@v2
|
||||
id: packageManager
|
||||
with:
|
||||
cmd: "jq .packageManager app/package.json -r"
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: ncipollo/release-action@v1
|
||||
|
@ -141,18 +147,18 @@ jobs:
|
|||
GOARCH: ${{ matrix.config.goarch }}
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v3
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 20
|
||||
|
||||
- name: Install Node pnpm
|
||||
run: npm install -g pnpm
|
||||
run: npm install -g ${{ needs.create_release.outputs.packageManager }}
|
||||
working-directory: ${{ github.workspace }}/go/src/github.com/siyuan-note/siyuan/app
|
||||
|
||||
- name: Install Node Dependencies
|
||||
run: pnpm install --no-frozen-lockfile
|
||||
working-directory: ${{ github.workspace }}/go/src/github.com/siyuan-note/siyuan/app
|
||||
|
||||
|
||||
- name: Building UI
|
||||
run: pnpm run build
|
||||
working-directory: ${{ github.workspace }}/go/src/github.com/siyuan-note/siyuan/app
|
||||
|
|
Loading…
Add table
Reference in a new issue