build with node18

This commit is contained in:
techknowlogick 2023-11-11 01:08:55 -05:00
parent 754be5b7d9
commit 14769a6db2

View file

@ -13,18 +13,18 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- uses: https://github.com/actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 18
- name: Build - name: Build
run: | run: |
npm ci npm ci
npm run build npm run build
- name: publish to netlify - name: publish to netlify
uses: https://github.com/nwtgck/actions-netlify@v2.0 uses: nwtgck/actions-netlify@v2.0
with: with:
publish-dir: build publish-dir: build
production-branch: main production-branch: main
env: env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: b3cd7cc2-68be-4467-b3a6-38f1fdfa0cfc NETLIFY_SITE_ID: b3cd7cc2-68be-4467-b3a6-38f1fdfa0cfc