CI: Update Node version (#1578)

This commit is contained in:
catloversg 2024-08-16 03:08:21 +07:00 committed by GitHub
parent 9db1084b16
commit 8e278f9262
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 36 additions and 36 deletions

@ -39,13 +39,13 @@ jobs:
- name: Install pandoc dependency - name: Install pandoc dependency
run: sudo apt-get install -y pandoc run: sudo apt-get install -y pandoc
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Use Node.js 16.13.1 - name: Use Node.js 20
uses: actions/setup-node@v2 uses: actions/setup-node@v4
with: with:
node-version: 16.13.1 node-version: 20
cache: "npm" cache: "npm"
- name: Install NPM dependencies for version updater - name: Install NPM dependencies for version updater
working-directory: ./tools/bump-version working-directory: ./tools/bump-version

@ -15,11 +15,11 @@ jobs:
name: Build name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Use Node.js 16.13.1 - name: Use Node.js 20
uses: actions/setup-node@v2 uses: actions/setup-node@v4
with: with:
node-version: 16.13.1 node-version: 20
cache: "npm" cache: "npm"
- name: Install npm dependencies - name: Install npm dependencies
run: npm ci run: npm ci
@ -29,11 +29,11 @@ jobs:
name: Lint name: Lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Use Node.js 16.13.1 - name: Use Node.js 20
uses: actions/setup-node@v2 uses: actions/setup-node@v4
with: with:
node-version: 16.13.1 node-version: 20
cache: "npm" cache: "npm"
- name: Install npm dependencies - name: Install npm dependencies
run: npm ci run: npm ci
@ -43,11 +43,11 @@ jobs:
name: Prettier name: Prettier
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Use Node.js 16.13.1 - name: Use Node.js 20
uses: actions/setup-node@v2 uses: actions/setup-node@v4
with: with:
node-version: 16.13.1 node-version: 20
cache: "npm" cache: "npm"
- name: Install npm dependencies - name: Install npm dependencies
run: npm ci run: npm ci
@ -57,11 +57,11 @@ jobs:
name: Test name: Test
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Use Node.js 16.13.1 - name: Use Node.js 20
uses: actions/setup-node@v2 uses: actions/setup-node@v4
with: with:
node-version: 16.13.1 node-version: 20
cache: "npm" cache: "npm"
- name: Install npm dependencies - name: Install npm dependencies
run: npm ci run: npm ci

@ -19,15 +19,15 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/setup-node@v3 - uses: actions/setup-node@v4
with: with:
node-version: 16 node-version: 20
- run: npm ci - run: npm ci
- run: npm run build - run: npm run build
- uses: actions/upload-pages-artifact@v1 - uses: actions/upload-pages-artifact@v3
with: with:
path: ".app" path: ".app"
- name: Deploy to gh pages - name: Deploy to gh pages
id: deployment id: deployment
uses: actions/deploy-pages@v1 uses: actions/deploy-pages@v4

@ -12,11 +12,11 @@ jobs:
fetchChangelog: fetchChangelog:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Use Node v16.13.1 - name: Use Node 20
uses: actions/setup-node@v2 uses: actions/setup-node@v4
with: with:
node-version: 16.13.1 node-version: 20
cache: "npm" cache: "npm"
- name: Install NPM dependencies - name: Install NPM dependencies
working-directory: ./tools/fetch-changelog working-directory: ./tools/fetch-changelog
@ -38,7 +38,7 @@ jobs:
echo echo
echo "You may want to go to https://gist.github.com/ to upload the final changelog" echo "You may want to go to https://gist.github.com/ to upload the final changelog"
echo "The next step will require an url because we can't easily pass multiline strings to actions" echo "The next step will require an url because we can't easily pass multiline strings to actions"
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v4
with: with:
name: bitburner_changelog___DRAFT.md name: bitburner_changelog___DRAFT.md
path: ./tools/fetch-changelog/changes.md path: ./tools/fetch-changelog/changes.md

@ -12,14 +12,14 @@ jobs:
uses: CyberAndrii/setup-steamcmd@v1 uses: CyberAndrii/setup-steamcmd@v1
- name: Checkout dev branch - name: Checkout dev branch
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
ref: dev ref: dev
- name: Setup node - name: Setup node
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: 16 node-version: 20
- name: Build and deploy - name: Build and deploy
run: | run: |

@ -15,13 +15,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout files - name: Checkout files
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Check bundle files - name: Check bundle files
id: changed-bundle-files id: changed-bundle-files
uses: tj-actions/changed-files@v18.4 uses: tj-actions/changed-files@v44
with: with:
files: | files: |
dist/* dist/**
- name: Warn when dist was changed or title is invalid - name: Warn when dist was changed or title is invalid
id: warn-bundles-changed id: warn-bundles-changed