Skip to content

Commit e2576ad

Browse files
committed
Update workflows
1 parent f99c48d commit e2576ad

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

.github/workflows/gh-pages-main.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ on:
1111
branches: [ main ]
1212

1313
jobs:
14-
build:
14+
build-and-deploy:
15+
concurrency: ci-${{ github.ref }}
1516
runs-on: ubuntu-latest
16-
1717
steps:
18-
- uses: actions/checkout@v4
18+
- name: Checkout 🛎️
19+
uses: actions/checkout@v6
1920
with:
2021
persist-credentials: false
21-
- uses: actions/setup-node@v4
22-
with:
23-
node-version: latest
24-
2522

26-
- name: Install dependencies
27-
run: npm install
23+
- name: Set up Git
24+
run: |
25+
git config --global user.name "Github Actions"
26+
git config --global user.email "actions@github.com"
2827
29-
- name: Create build files for gh-pages deploy
30-
run: npm run ghpages:build
28+
- name: Install and Build 🔧
29+
run: |
30+
npm ci
31+
npm run ghpages:build
3132
32-
# Reference: https://github.com/JamesIves/github-pages-deploy-action
3333
- name: Deploy 🚀
34-
uses: JamesIves/github-pages-deploy-action@v4.7.3
34+
uses: JamesIves/github-pages-deploy-action@v4
3535
with:
3636
branch: ghpages
3737
folder: ghpages

.github/workflows/pr-preview.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v6
2525
- uses: actions/setup-node@v4
26-
with:
27-
node-version: latest
2826

2927
- name: Set up Git
3028
run: |

0 commit comments

Comments
 (0)