Remove node warnings from workflows

- Use setup-node to control Node version used to build
- Use Node20 compatible actions in custom actions
This commit is contained in:
daz 2024-01-24 15:50:37 -07:00
parent f1361c71c2
commit 75b3db10df
No known key found for this signature in database
3 changed files with 10 additions and 3 deletions

View file

@ -3,14 +3,18 @@ name: 'Build and upload distribution'
runs:
using: "composite"
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Build distribution
shell: bash
run: |
npm -v
node -v
npm install
npm run build
- name: Upload distribution
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/

View file

@ -6,7 +6,7 @@ runs:
steps:
- name: Download dist
if: ${{ env.DOWNLOAD_DIST == 'true' }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
path: dist/

View file

@ -17,6 +17,9 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Build
run: |
npm -v