From 863bf58c466dc6e4ad77d9c85b445c72d5d286e3 Mon Sep 17 00:00:00 2001
From: Drew Powers <1369770+drwpow@users.noreply.github.com>
Date: Fri, 24 Sep 2021 11:12:52 -0600
Subject: [PATCH] Fix CI release on merge to next (#1427)

---
 .github/workflows/release-next.yml | 5 ++++-
 packages/astro/package.json        | 2 +-
 packages/astro/src/build/index.ts  | 2 +-
 yarn.lock                          | 2 +-
 4 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/release-next.yml b/.github/workflows/release-next.yml
index 79c3b093a..10ce81992 100644
--- a/.github/workflows/release-next.yml
+++ b/.github/workflows/release-next.yml
@@ -19,7 +19,10 @@ jobs:
       - # 2. discard examples/docs/www changes (just in case)
         run: git checkout -- examples/ docs/ www/
       - # 3: use compiler--next renderers (but don’t commit)
-        run: cd packages/astro && yarn add @astrojs/renderer-preact@next--compiler @astrojs/renderer-react@next--compiler @astrojs/renderer-svelte@next--compiler @astrojs/renderer-vue@next--compiler && cd ../..
+        run: |
+          cd packages/astro
+          yarn add @astrojs/renderer-preact@next--compiler @astrojs/renderer-react@next--compiler @astrojs/renderer-svelte@next--compiler @astrojs/renderer-vue@next--compiler
+          cd ../..
       - # 4: auth
         run: echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN  }}' > ${{ github.workspace }}/.npmrc
       - # 5: publish!
diff --git a/packages/astro/package.json b/packages/astro/package.json
index 33e75a6c8..388196b1b 100644
--- a/packages/astro/package.json
+++ b/packages/astro/package.json
@@ -47,7 +47,7 @@
     "@astrojs/renderer-svelte": "^0.1.2",
     "@astrojs/renderer-vue": "^0.1.8",
     "@babel/core": "^7.15.5",
-    "@web/rollup-plugin-html": "^1.9.1",
+    "@web/rollup-plugin-html": "^1.10.1",
     "astring": "^1.7.5",
     "cheerio": "^1.0.0-rc.10",
     "ci-info": "^3.2.0",
diff --git a/packages/astro/src/build/index.ts b/packages/astro/src/build/index.ts
index 3dd2c996f..7a64da486 100644
--- a/packages/astro/src/build/index.ts
+++ b/packages/astro/src/build/index.ts
@@ -131,7 +131,7 @@ class AstroBuilder {
         rollupPluginHTML({
           input,
           extractAssets: false,
-        }),
+        }) as any, // CI fix: ignore typing of this plugin
         ...(viteConfig.plugins || []),
       ],
       publicDir: viteConfig.publicDir,
diff --git a/yarn.lock b/yarn.lock
index 6cbc49071..11c76b89c 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2082,7 +2082,7 @@
     "@types/parse5" "^6.0.1"
     parse5 "^6.0.1"
 
-"@web/rollup-plugin-html@^1.9.1":
+"@web/rollup-plugin-html@^1.10.1":
   version "1.10.1"
   resolved "https://registry.yarnpkg.com/@web/rollup-plugin-html/-/rollup-plugin-html-1.10.1.tgz#7995d3aff436f6b5c1a365830a9ff525388b40d8"
   integrity sha512-XYJxHtdllwA5l4X8wh8CailrOykOl3YY+BRqO8+wS/I1Kq0JFISg3EUHdWAyVcw0TRDnHNLbOBJTm2ptAM+eog==