File tree 2 files changed +31
-1
lines changed
2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
+
4
+ name : Node.js CI
5
+
6
+ on :
7
+ push :
8
+ branches : [ src ]
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+ strategy :
14
+ matrix :
15
+ node-version : [20.x]
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - name : Use Node.js ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+ - run : npm install
23
+ - run : npm run build --if-present
24
+
25
+ - name : Deploy to GitHub Pages
26
+ uses : peaceiris/actions-gh-pages@v4
27
+ # from dir
28
+ publish_dir : build
29
+ # to branch
30
+ publish_branch : master
Original file line number Diff line number Diff line change 16
16
17
17
strategy :
18
18
matrix :
19
- node-version : [14 .x]
19
+ node-version : [20 .x]
20
20
21
21
steps :
22
22
- uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments