diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 41d279b30..3066c4c62 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -28,6 +28,8 @@ jobs: id: changesets uses: changesets/action@v1 with: + # this expects you to have a npm script called version that runs some logic and then calls `changeset version`. + version: yarn version # This expects you to have a script called release which does a build for your packages and calls changeset publish publish: yarn release commit: "chore: release eslint-plugin-svelte" diff --git a/package.json b/package.json index 090b1cf96..a0e653929 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "ts": "node -r esbuild-register", "typecov": "type-coverage", "update": "yarn ts ./tools/update.ts && yarn format-for-gen-file", - "version": "env-cmd -e version yarn update && git add ." + "version": "env-cmd -e version yarn update && changeset version" }, "peerDependencies": { "eslint": "^7.0.0 || ^8.0.0-0",