-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(release): update workflow dependencies
- Loading branch information
1 parent
64763dc
commit a1c4bc1
Showing
1 changed file
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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') }} | ||
|
@@ -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 | ||
|