From 2d45cc3e6e88bdac0645d485f4d2988f65b79134 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Wed, 16 Nov 2022 18:02:19 +0800 Subject: [PATCH] fix: run version script when after `changeset version` --- .changeset/tricky-mirrors-act.md | 5 +++++ .github/workflows/release.yml | 2 ++ package.json | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 .changeset/tricky-mirrors-act.md diff --git a/.changeset/tricky-mirrors-act.md b/.changeset/tricky-mirrors-act.md new file mode 100644 index 000000000..ffcb7e95e --- /dev/null +++ b/.changeset/tricky-mirrors-act.md @@ -0,0 +1,5 @@ +--- +"@logto/schemas": patch +--- + +Update alteration script names after versioning diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb44ca684..39394b159 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -112,6 +112,8 @@ jobs: with: # Use our customized publish flow. See https://github.com/changesets/changesets/issues/833 for the limit of changesets. publish: node .scripts/publish.js + # `changeset version` won't run version lifecycle scripts, see https://github.com/changesets/changesets/issues/860 + version: pnpm ci:version commit: 'release: version packages' title: 'release: version packages' # Create by our rules defined in `/.changeset/README.md`. diff --git a/package.json b/package.json index d4e93b575..de3801af8 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,8 @@ "start": "cd packages/core && NODE_ENV=production node .", "cli": "logto", "alteration": "logto db alt", + "//": "# `changeset version` won't run version lifecycle scripts, see https://github.com/changesets/changesets/issues/860", + "ci:version": "changeset version && pnpm -r version", "ci:build": "pnpm -r build", "ci:lint": "pnpm -r --parallel lint", "ci:stylelint": "pnpm -r --parallel stylelint",