Skip to content

Commit fcd1d2f

Browse files
committed
chore: adjust workflows and add website deploying workflow
1 parent 3dc21eb commit fcd1d2f

File tree

6 files changed

+44
-5
lines changed

6 files changed

+44
-5
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Deploy website to github pages"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- chore/deploy-website-and-andjust-docs
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-and-deploy:
12+
name: Build and deploy to github pages
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [22.x]
18+
19+
permissions:
20+
contents: write
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
28+
- name: Install packages
29+
run: yarn install --frozen-lockfile
30+
31+
- name: Build packages and web
32+
run: yarn build:all
33+
34+
- name: Deploy 🚀
35+
id: deploy-gh-pages
36+
uses: JamesIves/github-pages-deploy-action@v4
37+
with:
38+
folder: apps/website/build
39+
branch: gh-pages

.github/workflows/css-processor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [20.x]
19+
node-version: [22.x]
2020

2121
steps:
2222
- uses: actions/checkout@v4

.github/workflows/performances.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
node-version: [20.x]
21+
node-version: [22.x]
2222

2323
steps:
2424
- uses: actions/checkout@v4

.github/workflows/render.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [20.x]
19+
node-version: [22.x]
2020

2121
steps:
2222
- uses: actions/checkout@v4

.github/workflows/transient-render-engine.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
node-version: [20.x]
21+
node-version: [22.x]
2222

2323
steps:
2424
- uses: actions/checkout@v4

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"private": true,
1313
"scripts": {
14-
"build:all": "yarn build:transient-render-engine && yarn build:css-processor && yarn build:render && yarn workspace @doc/mdx-gen-cli build && yarn workspace @doc/pages build && yarn workspace website build",
14+
"build:all": "yarn build:css-processor && yarn build:transient-render-engine && yarn build:render && yarn workspace @doc/pages build && yarn workspace @doc/mdx-gen-cli build && yarn workspace website build-docs && yarn workspace website build",
1515
"build:css-processor": "yarn workspace @native-html/css-processor build",
1616
"build:transient-render-engine": "yarn workspace @native-html/transient-render-engine build",
1717
"build:render": "yarn workspace @native-html/render build",

0 commit comments

Comments
 (0)