From 19a11b4ef94adec6b29edba55320d9c8be8d10c4 Mon Sep 17 00:00:00 2001 From: metaory Date: Mon, 24 Jun 2024 16:28:47 +0800 Subject: [PATCH] ci fix --- .github/workflows/release.yml | 8 +++++++- package.json | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1ddbb6..0d3b198 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,10 +30,16 @@ jobs: git config --global user.signingkey ${{ secrets.XCI_GPG }} git config --global commit.gpgsign true + - name: Install dependencies + run: npm i -D @changesets/cli @changesets/changelog-github + + - name: Install dependencies + run: npm run build + - name: Release PR uses: changesets/action@v1 with: - version: npm run version + version: npm exec changeset version publish: npm exec changeset publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 78cff23..2e787bc 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "test": "node --test --test-concurrency 1", "watch:test": "node --test --watch", "watch:build": "watchexec -w src -d 300 npm run build", - "version": "npm i @changesets/cli @changesets/changelog-github && npm run build && npm exec changeset version", "build": "npx unbuild", "build:demo": "sh .github/scripts/gen-img", "build:stub": "npx unbuild --stub"