add node setup

This commit is contained in:
SPC-code 2023-01-19 16:50:46 +03:00 committed by GitHub
parent cf28d4a04c
commit 9de856a7ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.13.0'
- name: Build project
run: |
sudo yarn global add gatsby-cli
@ -17,4 +20,4 @@ jobs:
gatsby build
- name: Publish to server via scp
run: |
yarn run deploy ${{ secrets.WEBMASTER_USERNAME }} ${{ secrets.WEBMASTER_PASSWORD }}
yarn run deploy ${{ secrets.WEBMASTER_USERNAME }} ${{ secrets.WEBMASTER_PASSWORD }}