diff --git a/.github/workflows/doc-validator.yml b/.github/workflows/doc-validator.yml index 9317fb8649..90100be3cd 100644 --- a/.github/workflows/doc-validator.yml +++ b/.github/workflows/doc-validator.yml @@ -10,7 +10,7 @@ jobs: image: "grafana/doc-validator:v4.0.0" steps: - name: "Checkout code" - uses: "actions/checkout@v3" + uses: "actions/checkout@v4" - name: "Run doc-validator tool" run: > doc-validator diff --git a/.github/workflows/pr-deploy.yml b/.github/workflows/pr-deploy.yml index 884200e72d..d84ea19c6a 100644 --- a/.github/workflows/pr-deploy.yml +++ b/.github/workflows/pr-deploy.yml @@ -20,15 +20,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout project - uses: actions/checkout@v3 - - name: Use Node.js 16.xs - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - name: Use Node.js 20.xs + uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '20' registry-url: 'https://registry.npmjs.org' cache: 'npm' - name: Restore cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} @@ -47,7 +47,7 @@ jobs: name: Lint prose runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: errata-ai/vale-action@reviewdog env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} @@ -61,7 +61,7 @@ jobs: runs-on: ubuntu-latest needs: lint steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Print build settings run: | @@ -71,15 +71,15 @@ jobs: echo "GATSBY_DEFAULT_BLOG_URL: $GATSBY_DEFAULT_BLOG_URL" echo "GATSBY_DEFAULT_APP_URL: $GATSBY_DEFAULT_APP_URL" - - name: Use Node.js 16.xs - uses: actions/setup-node@v3 + - name: Use Node.js 20.xs + uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '20' registry-url: 'https://registry.npmjs.org' cache: 'npm' - name: Restore node_modules cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} @@ -88,7 +88,7 @@ jobs: run: npm install - name: Restore build cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: # Gatsby requires both .cache and public. It will refuse to use .cache/ if public/ is not present. path: | diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 0ccd92db3b..a74a59cbba 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -31,14 +31,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout project - uses: actions/checkout@v3 - - name: Use Node.js 16.xs - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - name: Use Node.js 20.xs + uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '20' registry-url: 'https://registry.npmjs.org' - name: Restore cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} @@ -52,14 +52,14 @@ jobs: - update-dependencies steps: - name: Checkout project - uses: actions/checkout@v3 - - name: Use Node.js 16.xs - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - name: Use Node.js 20.xs + uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '20' registry-url: 'https://registry.npmjs.org' - name: Restore cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} @@ -79,7 +79,7 @@ jobs: name: Lint prose runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: errata-ai/vale-action@reviewdog env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} @@ -96,14 +96,14 @@ jobs: - lint steps: - name: Checkout project - uses: actions/checkout@v3 - - name: Use Node.js 16.xs - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - name: Use Node.js 20.xs + uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '20' registry-url: 'https://registry.npmjs.org' - name: Restore cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 2d93fdcabe..5edc6f17e9 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -31,22 +31,22 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout project - uses: actions/checkout@v3 - - name: Use Node.js 16.xs - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - name: Use Node.js 20.xs + uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '20' registry-url: 'https://registry.npmjs.org' cache: 'npm' - name: Restore node_modules cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - name: Install run: npm install - name: Restore Gatsby cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: # Gatsby requires both .cache and public. It will refuse to use .cache/ if public/ is not present. path: | @@ -72,7 +72,7 @@ jobs: name: Lint prose runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: errata-ai/vale-action@reviewdog env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} @@ -88,22 +88,22 @@ jobs: - lint steps: - name: Checkout project - uses: actions/checkout@v3 - - name: Use Node.js 16.xs - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - name: Use Node.js 20.xs + uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '20' registry-url: 'https://registry.npmjs.org' cache: 'npm' - name: Restore node_modules cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: '**/node_modules' key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} - name: Install run: npm install - name: Restore Gatsby cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: # Gatsby requires both .cache and public. It will refuse to use .cache/ if public/ is not present. path: | @@ -133,8 +133,8 @@ jobs: runs-on: ubuntu-latest needs: [build-deploy-staging] steps: - - uses: actions/checkout@v3 - - uses: JustinBeckwith/linkinator-action@v1 + - uses: actions/checkout@v4 + - uses: JustinBeckwith/linkinator-action@225a937c02e8c0916755289a02594a9105a3cbd8 # latest commit with node 20 support with: paths: ${{ env.GATSBY_DEFAULT_DOC_URL }} concurrency: 50