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
run: sudo apt-get install -y pandoc
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js 16.13.1
uses: actions/setup-node@v2
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 16.13.1
node-version: 20
cache: "npm"
- name: Install NPM dependencies for version updater
working-directory: ./tools/bump-version

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

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

@ -12,11 +12,11 @@ jobs:
fetchChangelog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node v16.13.1
uses: actions/setup-node@v2
- uses: actions/checkout@v4
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 16.13.1
node-version: 20
cache: "npm"
- name: Install NPM dependencies
working-directory: ./tools/fetch-changelog
@ -38,7 +38,7 @@ jobs:
echo
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"
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: bitburner_changelog___DRAFT.md
path: ./tools/fetch-changelog/changes.md

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

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