diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 13b7d92c..9f6e6da1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,6 +35,7 @@ jobs: - name: Create Release Pull Request uses: changesets/action@v1 with: + version: pnpm run version publish: pnpm changeset publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 5b17bd49..9e4bd0f6 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "ci:build": "pnpm build && pnpm docs:build", "ci:test": "pnpm lint && pnpm test", "prepare": "husky install", - "format": "prettier --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx,yml,json,md}'" + "format": "prettier --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx,yml,json,md}'", + "version": "pnpm changeset version && pnpm i --lockfile-only" }, "authors": [ "The Preact Authors (https://github.com/preactjs/signals/contributors)"