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"