We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5248212 commit cf1acfeCopy full SHA for cf1acfe
1 file changed
.github/workflows/deploy-gh-pages.yml
@@ -0,0 +1,31 @@
1
+name: Deploy to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches: [master]
6
7
+jobs:
8
+ deploy:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ contents: write
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ with:
15
+ fetch-depth: 0
16
17
+ - uses: actions/setup-node@v4
18
19
+ node-version: 18
20
+ cache: npm
21
22
+ - run: npm ci
23
24
+ - name: Create entry shim for webpack
25
+ run: echo 'export { default } from "./src/index";' > index.js
26
27
+ - name: Build examples and deploy
28
+ run: npx rc-tools run gh-pages
29
+ env:
30
+ NODE_OPTIONS: --openssl-legacy-provider
31
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments