Build examples in CI

This doesn’t verify they actually work, but at least this verified they
can be built.
This commit is contained in:
Remco Haszing 2021-11-25 21:28:01 +01:00
parent d35b72e1fe
commit 18cfa0a008
No known key found for this signature in database
GPG key ID: 40D9F5FE9155FD3C
2 changed files with 11 additions and 1 deletions

View file

@ -16,6 +16,16 @@ jobs:
- run: npm ci - run: npm ci
- run: npx eslint . - 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: pack:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View file

@ -116,7 +116,7 @@ window.MonacoEnvironment = {
new URL('monaco-editor/esm/vs/language/typescript/ts.worker', import.meta.url), new URL('monaco-editor/esm/vs/language/typescript/ts.worker', import.meta.url),
); );
case 'yaml': 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: default:
throw new Error(`Unknown label ${label}`); throw new Error(`Unknown label ${label}`);
} }