Skip to content

Commit 2876ea8

Browse files
committed
fix(ci): scope release-only moon tasks to release workflow
1 parent d95651d commit 2876ea8

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
commit: "chore(release): update release metadata"
3535
title: "release: update packages"
36-
version: moon run root:version
36+
version: CI=false moon run root:version
3737
publish: echo "No npm publish step"
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -46,4 +46,4 @@ jobs:
4646

4747
- name: Publish to JSR
4848
if: steps.changesets.outputs.hasChangesets == 'false'
49-
run: moon run cssforge:jsr-publish
49+
run: CI=false moon run cssforge:jsr-publish

moon.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ tasks:
1212
version:
1313
script: "npx changeset version && node packages/cssforge/scripts/sync-version.js"
1414
options:
15-
runInCI: "always"
15+
runInCI: false

packages/cssforge/moon.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ tasks:
110110
outputs:
111111
- "dist"
112112
options:
113-
runInCI: "always"
113+
runInCI: false
114114
jsr-dry-run:
115115
command: "npx"
116116
args: ["jsr", "publish", "--dry-run", "--allow-dirty"]
@@ -134,7 +134,7 @@ tasks:
134134
- "README.md"
135135
- "CHANGELOG.md"
136136
options:
137-
runInCI: "always"
137+
runInCI: false
138138
readme-update:
139139
command: "tsx"
140140
args: ["./scripts/update-readme.ts"]

0 commit comments

Comments
 (0)