diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1cee6f..f903620 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,10 +6,10 @@ 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 @@ -17,7 +17,7 @@ jobs: - name: Setup PHP 7.4 environment uses: nanasess/setup-php@v3.0.6 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