mirror of https://gitea.com/gitea/blog.git
build with node18
This commit is contained in:
parent
754be5b7d9
commit
14769a6db2
|
@ -13,18 +13,18 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||
- uses: https://github.com/actions/setup-node@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
- name: Build
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
- name: publish to netlify
|
||||
uses: https://github.com/nwtgck/actions-netlify@v2.0
|
||||
uses: nwtgck/actions-netlify@v2.0
|
||||
with:
|
||||
publish-dir: build
|
||||
production-branch: main
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
NETLIFY_SITE_ID: b3cd7cc2-68be-4467-b3a6-38f1fdfa0cfc
|
||||
NETLIFY_SITE_ID: b3cd7cc2-68be-4467-b3a6-38f1fdfa0cfc
|
||||
|
|
Loading…
Reference in New Issue