From 8c2bdb2636e9ab0eca588454c996e31e8c1dd29b Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 4 Mar 2024 14:27:36 -0800 Subject: [PATCH] [actions] update workflows --- .github/workflows/node-18+.yml | 4 ++-- .github/workflows/node-minors.yml | 4 ++-- .github/workflows/node-pretest.yml | 4 ++-- .github/workflows/npm-publish.yml | 4 ++-- .github/workflows/rebase.yml | 12 +++--------- .github/workflows/release.yml | 2 +- .github/workflows/smoke-test.yml | 2 +- 7 files changed, 13 insertions(+), 19 deletions(-) diff --git a/.github/workflows/node-18+.yml b/.github/workflows/node-18+.yml index 921db8111b..e27cb0e7bf 100644 --- a/.github/workflows/node-18+.yml +++ b/.github/workflows/node-18+.yml @@ -39,7 +39,7 @@ jobs: - 8 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ljharb/actions/node/install@main name: 'nvm install ${{ matrix.node-version }} && npm install' with: @@ -50,7 +50,7 @@ jobs: NPM_CONFIG_LEGACY_PEER_DEPS: true - run: npx ls-engines - run: npm run unit-test - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v3.1.5 node: name: 'node 18+' diff --git a/.github/workflows/node-minors.yml b/.github/workflows/node-minors.yml index 2b5230268a..548b571dd2 100644 --- a/.github/workflows/node-minors.yml +++ b/.github/workflows/node-minors.yml @@ -94,7 +94,7 @@ jobs: eslint: 5 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ljharb/actions/node/install@main name: 'nvm install ${{ matrix.node-version }} && npm install' with: @@ -107,7 +107,7 @@ jobs: - run: npx ls-engines if: ${{ matrix.node-version >= 12 }} - run: npm run unit-test - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v3.1.5 node: name: 'node 4 - 17' diff --git a/.github/workflows/node-pretest.yml b/.github/workflows/node-pretest.yml index 5177ab52fa..0f410f48b6 100644 --- a/.github/workflows/node-pretest.yml +++ b/.github/workflows/node-pretest.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ljharb/actions/node/install@main name: 'nvm install lts/* && npm install' with: @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ljharb/actions/node/install@main name: 'nvm install lts/* && npm install' with: diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 2b89b601b7..8ed3becf6b 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -15,7 +15,7 @@ jobs: outputs: is-new-version: ${{ steps.cpv.outputs.is-new-version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.tag }} @@ -103,7 +103,7 @@ jobs: prod.api.stepsecurity.io:443 registry.npmjs.org:443 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.tag }} diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index a4d47c74ca..b9e1712fc4 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -4,12 +4,6 @@ on: [pull_request_target] jobs: _: - name: "Automatic Rebase" - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - uses: ljharb/rebase@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ljharb/actions/.github/workflows/rebase.yml@main + secrets: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a110a1f476..0de329d737 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: run: echo "current_version=${GITHUB_REF#refs/tags/v}" >> "$GITHUB_OUTPUT" shell: bash - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: mindsers/changelog-reader-action@v2 id: changelog_reader diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 5c5d99b338..a2dacffb91 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -10,7 +10,7 @@ jobs: if: ${{ github.repository == 'jsx-eslint/eslint-plugin-react' || github.event_name == 'workflow_dispatch' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ljharb/actions/node/install@main name: 'nvm install lts/* && npm install' with: