Skip to content

Commit 856d47b

Browse files
committed
ci: update 02 workflow file
1 parent ed15314 commit 856d47b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/deploy.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
uses: actions/checkout@v2
1717

1818
- name: Setup Node
19-
uses: actions/setup-node@v2
19+
uses: actions/setup-node@v1
2020
with:
21-
node-version: 18
21+
node-version: 16
2222

2323
- name: Install dependencies
24-
uses: npm install
24+
uses: bahmutov/npm-install@v1
2525

2626
- name: Build project
2727
run: npm run build
@@ -36,11 +36,9 @@ jobs:
3636
name: Deploy
3737
needs: build
3838
runs-on: ubuntu-latest
39+
if: github.ref == 'refs/heads/main'
3940

4041
steps:
41-
- name: Checkout repo
42-
uses: actions/checkout@v2
43-
4442
- name: Download artifact
4543
uses: actions/download-artifact@v2
4644
with:

0 commit comments

Comments
 (0)