Skip to content

Commit b3f3235

Browse files
committed
feat: playground integration
1 parent 50a434f commit b3f3235

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+11767
-98
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module.exports = {
33
extends: require.resolve('@diplodoc/lint/eslint-config'),
44
parserOptions: {
55
tsconfigRootDir: __dirname,
6-
project: ['./tsconfig.json'],
6+
project: true,
77
},
88
};

.github/workflows/release.yml

+21
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ permissions:
1111
jobs:
1212
release:
1313
runs-on: ubuntu-latest
14+
15+
permissions:
16+
pages: write
17+
id-token: write
18+
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
1423
steps:
1524
- uses: actions/checkout@v2
1625
- uses: actions/setup-node@v3
@@ -34,3 +43,15 @@ jobs:
3443
NODE_AUTH_TOKEN: ${{secrets.ROBOT_DATAUI_NPM_TOKEN}}
3544
if: ${{ steps.release.outputs.release_created }}
3645
shell: bash
46+
- run: npm run artifact:pages
47+
if: ${{ steps.release.outputs.release_created }}
48+
- name: Upload static files as artifact
49+
if: ${{ steps.release.outputs.release_created }}
50+
id: artifact
51+
uses: actions/upload-pages-artifact@v3
52+
with:
53+
path: pages-build/
54+
- name: Deploy to GitHub Pages
55+
if: ${{ steps.release.outputs.release_created }}
56+
id: deployment
57+
uses: actions/deploy-pages@v4

.gitignore

+8-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,11 @@ lib
1515
/dist
1616
/build
1717
/cache
18-
/coverage
18+
/coverage
19+
/pages-build
20+
21+
node_modules/
22+
www/
23+
bundle/
24+
25+
tsconfig.tsbuildinfo

0 commit comments

Comments
 (0)