mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
ci: Update versions of actions (#10270)
* ci: update versions of actions * ci: attempt fix
This commit is contained in:
2
.github/workflows/cleanup-cache.yml
vendored
2
.github/workflows/cleanup-cache.yml
vendored
@@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Cleanup caches
|
- name: Cleanup caches
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
8
.github/workflows/deploy-website.yml
vendored
8
.github/workflows/deploy-website.yml
vendored
@@ -14,12 +14,12 @@ jobs:
|
|||||||
if: github.repository_owner == 'discordjs'
|
if: github.repository_owner == 'discordjs'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Node.js v18
|
- name: Install Node.js v20
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./packages/actions/src/pnpmCache
|
uses: ./packages/actions/src/pnpmCache
|
||||||
|
|||||||
8
.github/workflows/deprecate-version.yml
vendored
8
.github/workflows/deprecate-version.yml
vendored
@@ -34,12 +34,12 @@ jobs:
|
|||||||
if: github.repository_owner == 'discordjs'
|
if: github.repository_owner == 'discordjs'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Node.js v18
|
- name: Install Node.js v20
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./packages/actions/src/pnpmCache
|
uses: ./packages/actions/src/pnpmCache
|
||||||
|
|||||||
20
.github/workflows/documentation.yml
vendored
20
.github/workflows/documentation.yml
vendored
@@ -36,14 +36,14 @@ jobs:
|
|||||||
if: github.repository_owner == 'discordjs'
|
if: github.repository_owner == 'discordjs'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref || '' }}
|
ref: ${{ inputs.ref || '' }}
|
||||||
|
|
||||||
- name: Install node.js v18
|
- name: Install Node.js v20
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./packages/actions/src/pnpmCache
|
uses: ./packages/actions/src/pnpmCache
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout main repository
|
- name: Checkout main repository
|
||||||
if: ${{ inputs.ref && inputs.ref != 'main' }}
|
if: ${{ inputs.ref && inputs.ref != 'main' }}
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: 'main'
|
path: 'main'
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
- name: Checkout docs repository
|
- name: Checkout docs repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: 'discordjs/docs'
|
repository: 'discordjs/docs'
|
||||||
token: ${{ secrets.DJS_DOCS }}
|
token: ${{ secrets.DJS_DOCS }}
|
||||||
@@ -211,12 +211,12 @@ jobs:
|
|||||||
if: github.repository_owner == 'discordjs'
|
if: github.repository_owner == 'discordjs'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install node.js v18
|
- name: Install Node.js v20
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./packages/actions/src/pnpmCache
|
uses: ./packages/actions/src/pnpmCache
|
||||||
|
|||||||
2
.github/workflows/issue-triage.yml
vendored
2
.github/workflows/issue-triage.yml
vendored
@@ -6,7 +6,7 @@ jobs:
|
|||||||
issue-triage:
|
issue-triage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: github/issue-labeler@v3.2
|
- uses: github/issue-labeler@v3.4
|
||||||
with:
|
with:
|
||||||
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
configuration-path: .github/issue-labeler.yml
|
configuration-path: .github/issue-labeler.yml
|
||||||
|
|||||||
4
.github/workflows/label-sync.yml
vendored
4
.github/workflows/label-sync.yml
vendored
@@ -15,9 +15,9 @@ jobs:
|
|||||||
if: github.repository_owner == 'discordjs'
|
if: github.repository_owner == 'discordjs'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Label sync
|
- name: Label sync
|
||||||
uses: crazy-max/ghaction-github-labeler@v4
|
uses: crazy-max/ghaction-github-labeler@v5
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
2
.github/workflows/lock.yml
vendored
2
.github/workflows/lock.yml
vendored
@@ -11,7 +11,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
issues: write
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- uses: dessant/lock-threads@v4
|
- uses: dessant/lock-threads@v5
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
issue-inactive-days: 365
|
issue-inactive-days: 365
|
||||||
|
|||||||
2
.github/workflows/pr-triage.yml
vendored
2
.github/workflows/pr-triage.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Automatically label PR
|
- name: Automatically label PR
|
||||||
uses: actions/labeler@v4
|
uses: actions/labeler@v5
|
||||||
with:
|
with:
|
||||||
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|
repo-token: '${{ secrets.GITHUB_TOKEN }}'
|
||||||
sync-labels: true
|
sync-labels: true
|
||||||
|
|||||||
10
.github/workflows/publish-dev-docker.yml
vendored
10
.github/workflows/publish-dev-docker.yml
vendored
@@ -10,18 +10,18 @@ jobs:
|
|||||||
if: github.repository_owner == 'discordjs'
|
if: github.repository_owner == 'discordjs'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install node.js v18
|
- name: Install Node.js v20
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./packages/actions/src/pnpmCache
|
uses: ./packages/actions/src/pnpmCache
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
run: echo ${{ secrets.DOCKER_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
run: echo ${{ secrets.DOCKER_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||||
|
|||||||
8
.github/workflows/publish-dev.yml
vendored
8
.github/workflows/publish-dev.yml
vendored
@@ -43,14 +43,14 @@ jobs:
|
|||||||
if: github.repository_owner == 'discordjs'
|
if: github.repository_owner == 'discordjs'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install node.js v18
|
- name: Install Node.js v20
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
|
|
||||||
- name: Check the current development version
|
- name: Check the current development version
|
||||||
|
|||||||
10
.github/workflows/publish-docker.yml
vendored
10
.github/workflows/publish-docker.yml
vendored
@@ -7,18 +7,18 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install node.js v18
|
- name: Install Node.js v20
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./packages/actions/src/pnpmCache
|
uses: ./packages/actions/src/pnpmCache
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
run: echo ${{ secrets.DOCKER_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
run: echo ${{ secrets.DOCKER_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||||
|
|||||||
8
.github/workflows/publish-release.yml
vendored
8
.github/workflows/publish-release.yml
vendored
@@ -14,12 +14,12 @@ jobs:
|
|||||||
if: github.repository_owner == 'discordjs'
|
if: github.repository_owner == 'discordjs'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install node.js v18
|
- name: Install Node.js v20
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
@@ -15,14 +15,14 @@ jobs:
|
|||||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install node.js v18
|
- name: Install Node.js v20
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 20
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./packages/actions/src/pnpmCache
|
uses: ./packages/actions/src/pnpmCache
|
||||||
@@ -62,3 +62,5 @@ jobs:
|
|||||||
- name: Upload Coverage
|
- name: Upload Coverage
|
||||||
if: github.repository_owner == 'discordjs'
|
if: github.repository_owner == 'discordjs'
|
||||||
uses: ./packages/actions/src/uploadCoverage
|
uses: ./packages/actions/src/uploadCoverage
|
||||||
|
with:
|
||||||
|
codecov_token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ runs:
|
|||||||
with:
|
with:
|
||||||
swap-size-gb: 10
|
swap-size-gb: 10
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v2.2.4
|
- uses: pnpm/action-setup@v4.0.0
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
run_install: false
|
run_install: false
|
||||||
@@ -26,7 +26,7 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
echo "YEAR_MONTH=$(/bin/date -u "+%Y%m")" >> $GITHUB_OUTPUT
|
echo "YEAR_MONTH=$(/bin/date -u "+%Y%m")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v4
|
||||||
name: Setup pnpm cache
|
name: Setup pnpm cache
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pnpm-config.outputs.STORE_PATH }}
|
path: ${{ steps.pnpm-config.outputs.STORE_PATH }}
|
||||||
|
|||||||
@@ -1,88 +1,106 @@
|
|||||||
name: 'Upload Coverage'
|
name: 'Upload Coverage'
|
||||||
description: 'Uploads code coverage reports to codecov with separate flags for separate packages'
|
description: 'Uploads code coverage reports to codecov with separate flags for separate packages'
|
||||||
|
inputs:
|
||||||
|
codecov_token:
|
||||||
|
description: 'Codecov token.'
|
||||||
|
required: true
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- name: Upload Guide Coverage
|
- name: Upload Guide Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./apps/guide/coverage/cobertura-coverage.xml
|
files: ./apps/guide/coverage/cobertura-coverage.xml
|
||||||
flags: guide
|
flags: guide
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload Website Coverage
|
- name: Upload Website Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./apps/website/coverage/cobertura-coverage.xml
|
files: ./apps/website/coverage/cobertura-coverage.xml
|
||||||
flags: website
|
flags: website
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload Brokers Coverage
|
- name: Upload Brokers Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./packages/brokers/coverage/cobertura-coverage.xml
|
files: ./packages/brokers/coverage/cobertura-coverage.xml
|
||||||
flags: brokers
|
flags: brokers
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload Builders Coverage
|
- name: Upload Builders Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./packages/builders/coverage/cobertura-coverage.xml
|
files: ./packages/builders/coverage/cobertura-coverage.xml
|
||||||
flags: builders
|
flags: builders
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload Collection Coverage
|
- name: Upload Collection Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./packages/collection/coverage/cobertura-coverage.xml
|
files: ./packages/collection/coverage/cobertura-coverage.xml
|
||||||
flags: collection
|
flags: collection
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload Discord.js Coverage
|
- name: Upload Discord.js Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./packages/discord.js/coverage/cobertura-coverage.xml
|
files: ./packages/discord.js/coverage/cobertura-coverage.xml
|
||||||
flags: discord.js
|
flags: discord.js
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload Formatters Coverage
|
- name: Upload Formatters Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./packages/formatters/coverage/cobertura-coverage.xml
|
files: ./packages/formatters/coverage/cobertura-coverage.xml
|
||||||
flags: formatters
|
flags: formatters
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload Next Coverage
|
- name: Upload Next Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./packages/next/coverage/cobertura-coverage.xml
|
files: ./packages/next/coverage/cobertura-coverage.xml
|
||||||
flags: next
|
flags: next
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload Proxy Coverage
|
- name: Upload Proxy Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./packages/proxy/coverage/cobertura-coverage.xml
|
files: ./packages/proxy/coverage/cobertura-coverage.xml
|
||||||
flags: proxy
|
flags: proxy
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload Rest Coverage
|
- name: Upload Rest Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./packages/rest/coverage/cobertura-coverage.xml
|
files: ./packages/rest/coverage/cobertura-coverage.xml
|
||||||
flags: rest
|
flags: rest
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload Voice Coverage
|
- name: Upload Voice Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./packages/voice/coverage/cobertura-coverage.xml
|
files: ./packages/voice/coverage/cobertura-coverage.xml
|
||||||
flags: voice
|
flags: voice
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload WS Coverage
|
- name: Upload WS Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./packages/ws/coverage/cobertura-coverage.xml
|
files: ./packages/ws/coverage/cobertura-coverage.xml
|
||||||
flags: ws
|
flags: ws
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload Util Coverage
|
- name: Upload Util Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./packages/util/coverage/cobertura-coverage.xml
|
files: ./packages/util/coverage/cobertura-coverage.xml
|
||||||
flags: util
|
flags: util
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload Utilities Coverage
|
- name: Upload Utilities Coverage
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v4
|
||||||
with:
|
with:
|
||||||
files: ./packages/actions/coverage/cobertura-coverage.xml, ./packages/scripts/coverage/cobertura-coverage.xml
|
files: ./packages/actions/coverage/cobertura-coverage.xml, ./packages/scripts/coverage/cobertura-coverage.xml
|
||||||
flags: utilities
|
flags: utilities
|
||||||
|
token: ${{ inputs.CODECOV_TOKEN }}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ runs:
|
|||||||
echo "NPM_GLOBAL_CACHE_FOLDER=$(npm config get cache)" >> $GITHUB_OUTPUT
|
echo "NPM_GLOBAL_CACHE_FOLDER=$(npm config get cache)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Restore yarn cache
|
- name: Restore yarn cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
id: yarn-download-cache
|
id: yarn-download-cache
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.yarn-config.outputs.CACHE_FOLDER }}
|
path: ${{ steps.yarn-config.outputs.CACHE_FOLDER }}
|
||||||
@@ -31,7 +31,7 @@ runs:
|
|||||||
|
|
||||||
- name: Restore global npm cache folder
|
- name: Restore global npm cache folder
|
||||||
id: npm-global-cache
|
id: npm-global-cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.yarn-config.outputs.NPM_GLOBAL_CACHE_FOLDER }}
|
path: ${{ steps.yarn-config.outputs.NPM_GLOBAL_CACHE_FOLDER }}
|
||||||
key: npm-global-cache-default-${{ runner.os }}-${{ steps.yarn-config.outputs.CURRENT_NODE_VERSION }}-${{ hashFiles(yarn.lock, .yarnrc.yml) }}
|
key: npm-global-cache-default-${{ runner.os }}-${{ steps.yarn-config.outputs.CURRENT_NODE_VERSION }}-${{ hashFiles(yarn.lock, .yarnrc.yml) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user