Skip to content

Commit

Permalink
ci: bump action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
stuft2 committed Jul 26, 2024
1 parent bf35dbc commit 0968693
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ on:
- .github/workflows/bump.yml

env:
node_version: "18.x"
node_version: "20.x"

jobs:
test:
name: Test Module
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -42,7 +42,7 @@ jobs:

- name: Upload coverage to Codecov
if: ${{ matrix.node-version == env.node_version }} # just run coverage if node 16
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
Expand All @@ -51,10 +51,10 @@ jobs:
name: Lint Module
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}

Expand All @@ -70,14 +70,14 @@ jobs:
runs-on: ubuntu-latest
needs: [test, lint]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- id: version
run: echo ::set-output name=version::$(node -p 'require("./package.json").version')

- name: Draft release
id: draft
uses: release-drafter/release-drafter@v5
uses: release-drafter/release-drafter@v6
with:
version: ${{ steps.version.outputs.version }}
env:
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- .github/workflows/bump.yml

env:
node_version: "18.x"
node_version: "20.x"

jobs:
env:
Expand Down Expand Up @@ -41,10 +41,10 @@ jobs:
name: Test Module
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}

Expand All @@ -56,7 +56,7 @@ jobs:
npm run coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
Expand All @@ -65,10 +65,10 @@ jobs:
name: Lint Module
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}

Expand All @@ -86,15 +86,15 @@ jobs:
matrix: ${{ fromJson(needs.env.outputs.matrix) }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Disallow Concurrent Runs
uses: byu-oit/github-action-disallow-concurrent-runs@v2
with:
token: ${{ github.token }}

- name: Set up Node.js
uses: actions/setup-node@v2.1.4
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
registry-url: ${{ matrix.registry.url }}
Expand All @@ -117,13 +117,13 @@ jobs:
runs-on: ubuntu-latest
needs: [publish]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- id: version
run: echo ::set-output name=version::$(node -p 'require("./package.json").version')

- name: Publish Release
uses: release-drafter/release-drafter@v5
uses: release-drafter/release-drafter@v6
with:
publish: true
version: ${{ steps.version.outputs.version }}
Expand Down

0 comments on commit 0968693

Please sign in to comment.