From 18cfa0a0087b6289b927557f9068adb749c91839 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Thu, 25 Nov 2021 21:28:01 +0100 Subject: [PATCH] Build examples in CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This doesn’t verify they actually work, but at least this verified they can be built. --- .github/workflows/ci.yaml | 10 ++++++++++ README.md | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8181c50..d87cd84 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,6 +16,16 @@ jobs: - run: npm ci - run: npx eslint . + examples: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: { node-version: 16 } + - run: npm ci + - run: npm run prepack + - run: npm run build --workspaces + pack: runs-on: ubuntu-latest steps: diff --git a/README.md b/README.md index 5e14e8d..d80c197 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ window.MonacoEnvironment = { new URL('monaco-editor/esm/vs/language/typescript/ts.worker', import.meta.url), ); case 'yaml': - return new Worker(new URL('monaco-yaml/lib/esm/yaml.worker', import.meta.url)); + return new Worker(new URL('monaco-yaml/yaml.worker', import.meta.url)); default: throw new Error(`Unknown label ${label}`); }