Skip to content

Commit

Permalink
ci(release): update workflow dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nelson6e65 authored Jun 6, 2024
1 parent 64763dc commit a1c4bc1
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ on:
jobs:
release:
name: Release
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

# PHP --------------------------------------------------------------------
- name: Setup PHP 7.4 environment
uses: nanasess/[email protected]
with:
php-version: 7.4
php-version: 8.2

- name: Validate composer.json and composer.lock
run: composer validate
Expand All @@ -28,7 +28,7 @@ jobs:
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Composer (cache)
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
Expand All @@ -43,23 +43,24 @@ jobs:

# npm --------------------------------------------------------------------
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2
uses: actions/setup-node@v4
with:
node-version: '12'
node-version: '20'
cache: 'npm'

- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
# - name: Get npm cache directory
# id: npm-cache-dir
# run: |
# echo "::set-output name=dir::$(npm config get cache)"

- name: NPM (cache)
uses: actions/cache@v2
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
# - name: NPM (cache)
# uses: actions/cache@v2
# id: npm-cache
# with:
# path: ${{ steps.npm-cache-dir.outputs.dir }}
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-node-

- name: Install Node.js dependencies
run: npm install
Expand Down

0 comments on commit a1c4bc1

Please sign in to comment.