Skip to content

Commit e448824

Browse files
committed
debug publish_schema for master
1 parent 60184a4 commit e448824

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/publish_schema.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- "master"
77
- "maint/*"
8+
- debug/jsr-dist
89

910
concurrency:
1011
group: ${{ github.workflow }}-${{ github.ref }}
@@ -40,7 +41,7 @@ jobs:
4041
- name: Determine master/maintenance branch
4142
id: branch
4243
run: |
43-
if [[ "$GITHUB_REF_NAME" = "master" ]]; then
44+
if [[ "$GITHUB_REF_NAME" = "master" || "$GITHUB_REF_NAME" = "debug/jsr-dist" ]]; then
4445
echo "branch=jsr-dist" | tee -a $GITHUB_OUTPUT
4546
echo "mode=dev" | tee -a $GITHUB_OUTPUT
4647
else
@@ -78,6 +79,7 @@ jobs:
7879
- name: Determine next version
7980
id: version
8081
run: |
82+
set -x
8183
BASE=$( jq -r .schema_version schema.json )
8284
if [[ "$BASE" =~ ^[0-9]*\.[0-9]*\.[0-9]*$ ]]; then
8385
# Release, so unconditionally update version
@@ -109,13 +111,14 @@ jobs:
109111
- name: Bump version (${{ steps.version.outputs.version }}) if changed
110112
if: steps.version.outputs.release == 'true'
111113
run: |
114+
set -x
112115
if ! git diff -s --exit-code; then
113116
jq ".version = \"$VERSION\"" jsr.json > tmp.json && mv tmp.json jsr.json
114117
git add jsr.json schema.json context.ts metaschema.ts
115118
git commit -m "Update schema JSR distribution ($VERSION)"
116-
git push
119+
# git push
117120
fi
118-
- name: Publish to JSR
119-
if: success() && steps.version.outputs.release == 'true'
120-
run: |
121-
npx jsr publish
121+
# - name: Publish to JSR
122+
# if: success() && steps.version.outputs.release == 'true'
123+
# run: |
124+
# npx jsr publish

0 commit comments

Comments
 (0)