Skip to content

Commit 8ea7cde

Browse files
authored
Update build-and-deploy.yml
1 parent d088bed commit 8ea7cde

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,16 @@ jobs:
1212
steps:
1313
- name: Checkout Repository
1414
uses: actions/checkout@v2
15+
with:
16+
ref: main # Specify the branch
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
submodules: recursive
19+
clean: true
20+
persist-credentials: false
21+
fetch-depth: 1
22+
node-version: 16 # Set Node.js version explicitly
1523

16-
- name: Set up Node.js
24+
- name: Use Node.js 16
1725
uses: actions/setup-node@v4
1826
with:
1927
node-version: 16
@@ -32,8 +40,16 @@ jobs:
3240
steps:
3341
- name: Checkout Repository
3442
uses: actions/checkout@v2
43+
with:
44+
ref: main # Specify the branch
45+
token: ${{ secrets.GITHUB_TOKEN }}
46+
submodules: recursive
47+
clean: true
48+
persist-credentials: false
49+
fetch-depth: 0
50+
node-version: 16 # Set Node.js version explicitly
3551

36-
- name: Set up Node.js
52+
- name: Use Node.js 16
3753
uses: actions/setup-node@v4
3854
with:
3955
node-version: 16

0 commit comments

Comments
 (0)