From f331ddfde32e40488a22ced0f7d577a8c5c827dd Mon Sep 17 00:00:00 2001 From: Shigma Date: Thu, 16 May 2024 00:53:27 +0800 Subject: [PATCH] update --- .github/workflows/build.yml | 2 +- .github/workflows/tag.yml | 22 +++++++++++----------- cordis.yml | 4 +++- package.json | 9 +++++---- 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c5091b..427495f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,7 +41,7 @@ jobs: - name: Set up qemu and binfmt (for arm64) if: ${{ matrix.target.emulate }} - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 with: platforms: ${{ matrix.target.emulate }} diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 92d35cb..8dfb038 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -8,10 +8,14 @@ on: jobs: release: permissions: + actions: write contents: write runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: - name: Check out uses: actions/checkout@v4 @@ -24,14 +28,10 @@ jobs: - name: Create release if: ${{ steps.version.outputs.tag }} - run: > - curl - -X POST - -H "Accept: application/vnd.github.v3+json" - -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" - https://api.github.com/repos/${{ github.repository }}/releases - -d '{ - "name": "${{ steps.version.outputs.tag }}", - "tag_name": "${{ steps.version.outputs.tag }}", - "target_commitish": "${{ github.sha }}" - }' + run: gh release create ${{ steps.version.outputs.tag }} + + - name: Build + run: gh workflow run build --ref ${{ steps.version.outputs.tag }} + + - name: Publish + run: gh workflow run npm --ref ${{ steps.version.outputs.tag }} diff --git a/cordis.yml b/cordis.yml index 1e5e841..96ad189 100644 --- a/cordis.yml +++ b/cordis.yml @@ -12,4 +12,6 @@ - id: el17rl name: '@cordisjs/plugin-insight' - id: ks2osk - name: '@cordisjs/plugin-config' + name: '@cordisjs/plugin-manager' + - id: 4cj730 + name: '@cordisjs/plugin-notifier' diff --git a/package.json b/package.json index 242db38..594e70d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cordiverse/boilerplate", - "version": "0.0.3", + "version": "0.0.4", "private": true, "files": [ ".env", @@ -34,11 +34,12 @@ "yml-register": "^1.2.5" }, "dependencies": { - "@cordisjs/plugin-config": "^2.8.6", "@cordisjs/plugin-hmr": "^0.2.1", "@cordisjs/plugin-insight": "^3.5.1", + "@cordisjs/plugin-manager": "^0.1.0", + "@cordisjs/plugin-notifier": "^0.1.0", "@cordisjs/plugin-server": "^0.2.2", - "@cordisjs/plugin-webui": "^0.1.1", - "cordis": "^3.15.0" + "@cordisjs/plugin-webui": "^0.1.3", + "cordis": "^3.15.1" } }