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: runs:
using: "composite" using: "composite"
steps: steps:
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Build distribution - name: Build distribution
shell: bash shell: bash
run: | run: |
npm -v
node -v
npm install npm install
npm run build npm run build
- name: Upload distribution - name: Upload distribution
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: dist name: dist
path: dist/ path: dist/

View File

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

View File

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