Skip to content

Commit b55e32b

Browse files
committed
more
1 parent 2ab7040 commit b55e32b

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/publish-version.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ jobs:
6161
echo "reason-react build melange_mini_stdlib.cmi candidates:"
6262
find "$RR_BUILD" -name "melange_mini_stdlib.cmi" -print || true
6363
- name: Rebuild packages for playground consistency
64-
run: opam reinstall -y melange
64+
run: opam reinstall -y melange melange-playground reason-react reason-react-ppx
65+
- name: Clean dune state after reinstall
66+
run: opam exec -- dune clean
6567
- name: Verify CMI consistency for playground
6668
run: |
6769
set -euo pipefail
@@ -95,6 +97,17 @@ jobs:
9597
echo "::error::reactDOM.cmi and js.cmi disagree on Melange_mini_stdlib digest"
9698
exit 1
9799
fi
100+
- name: Refresh vendored melange source
101+
run: |
102+
rm -rf melange
103+
opam source melange.$(opam show melange -f version --color never) --dir melange
104+
- name: Restrict vendored melange source to playground
105+
run: |
106+
set -euo pipefail
107+
perl -0pi -e 's/\(dirs[^\n]*\)/(dirs playground)/' melange/dune
108+
grep -n '^(dirs ' melange/dune
109+
- name: Build playground assets for consistency check
110+
run: opam exec -- dune build @playground-assets
98111
# only uncomment after a new version is released, from inside a `x.x.x-patches` branch
99112
# - name: Run canonical script
100113
# run: opam exec -- dune exec add_canonical docs/public/api

0 commit comments

Comments
 (0)