Skip to content

Commit

Permalink
ci: update nodejs to v20
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Nov 3, 2023
1 parent 630a61b commit fb7cb8d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: NPM Publish

env:
NODE_VERSION: 18
NODE_VERSION: 20

on:
release:
Expand All @@ -11,9 +11,9 @@ jobs:
test-lib:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
cache: npm
Expand All @@ -32,8 +32,8 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
registry-url: https://registry.npmjs.org/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: master

env:
NODE_VERSION: 18
NODE_VERSION: 20

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -23,10 +23,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
Expand All @@ -38,7 +38,7 @@ jobs:
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v2
with:
path: ./docs/dist

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Tests

env:
NODE_VERSION: 18
NODE_VERSION: 20

on:
push:
Expand All @@ -16,10 +16,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Using node v-${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
cache: npm
Expand Down

0 comments on commit fb7cb8d

Please sign in to comment.