Skip to content

Commit d2b8bf4

Browse files
committed
update pages yml
1 parent 0bf17d8 commit d2b8bf4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/pages.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
environment:
2323
name: github-pages
2424
url: ${{ steps.deployment.outputs.page_url }}
25-
runs-on: ubuntu-20.04
25+
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@v4
@@ -37,8 +37,9 @@ jobs:
3737
run: |
3838
npm run build
3939
npm run genDocs
40+
mkdir -p examples/typescript/dist
41+
cp -r docs examples/typescript/dist
4042
cd examples/typescript
41-
npm cache verify
4243
npm install
4344
npm run build
4445
- name: Setup tmate session

examples/typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"genDocs": "cd ../.. && npm run genDocs && mkdir -p examples/typescript/dist && cp -r docs examples/typescript/dist && cd examples/typescript",
88
"dev": "npm run clean && npm run genDocs && parcel src/index.html",
9-
"build": "npm run clean && npm run genDocs && parcel build src/index.html --no-optimize --public-url ./",
9+
"build": "npm run clean && parcel build src/index.html --no-optimize --public-url ./",
1010
"clean": "rimraf dist .parcel-cache",
1111
"test": "echo \"Error: no test specified\" && exit 1"
1212
},

0 commit comments

Comments
 (0)