Skip to content

Commit

Permalink
Changed version of node runtime for action from node16 to node20
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Nov 5, 2023
1 parent b5903d3 commit 894955b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
update-git-tag: # Reason: <https://github.com/actions/toolkit/blob/master/docs/action-versioning.md#recommendations>
name: Update latest major git tag
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ concurrency:
jobs:
eslint:
name: Run eslint
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env: {FORCE_COLOR: 'true'}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with: {node-version: '16'}
with: {node-version: '20'}

- uses: actions/cache@v3
id: yarn-cache
Expand All @@ -37,15 +37,15 @@ jobs:

dist-built:
name: Check distributive built state
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
dist-changed: ${{ steps.state.outputs.changed }}
env: {FORCE_COLOR: 'true'}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with: {node-version: '16'}
with: {node-version: '20'}

- uses: actions/cache@v3
id: yarn-cache
Expand All @@ -69,7 +69,7 @@ jobs:
name: Commit and push fresh distributive
needs: [dist-built]
if: ${{ needs.dist-built.outputs.dist-changed == 'true' }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file.

The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].

## v1.2.0

### Changed

- Version of node runtime for action from node16 to node20

## v1.1.4

### Changed
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ outputs:
description: GitLeaks exit code (will be set only if "inputs.run" is "true")

runs:
using: node16
using: node20
main: dist/index.js

branding:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ volumes:

services:
node:
image: node:16-alpine # Image page: <https://hub.docker.com/_/node>
image: node:20-alpine # Image page: <https://hub.docker.com/_/node>
environment:
PS1: '\[\033[1;32m\]\[\033[1;36m\][\u@\h] \[\033[1;34m\]\w\[\033[0;35m\] \[\033[1;36m\]# \[\033[0m\]'
PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/app/node_modules/.bin"
Expand Down

0 comments on commit 894955b

Please sign in to comment.