Skip to content

Commit 2f6a032

Browse files
committed
Use production version of Vue
1 parent c45d90f commit 2f6a032

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/static.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ jobs:
3333
uses: actions/checkout@v4
3434
- name: Setup Pages
3535
uses: actions/configure-pages@v5
36+
- name: Use production version of the framework
37+
run: |
38+
num="$(perl -i -ple '$k+= s|(\Qhttps://cdn.jsdelivr.net/npm/vue@3/dist/vue.esm-browser\E)\.js|$1.prod.js|g; END{print $k}' site/beta.html)"
39+
if [[ "$num" != 1 ]]; then
40+
echo "expect 1 match, got $num matches"
41+
exit 1
42+
fi
3643
- name: Upload artifact
3744
uses: actions/upload-pages-artifact@v3
3845
with:

0 commit comments

Comments
 (0)