Skip to content

Commit

Permalink
chore: update GitHub actions with node versions (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
jirimoravcik authored May 13, 2024
1 parent 180b3b7 commit ed4a7a0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [10, 12, 14]
node-version: [16, 18, 20]

steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
-
name: Cache Node Modules
if: ${{ matrix.node-version == 14 }}
uses: actions/cache@v2
if: ${{ matrix.node-version == 20 }}
uses: actions/cache@v4
with:
path: |
node_modules
build
key: cache-${{ github.run_id }}-v14
key: cache-${{ github.run_id }}-v20
-
name: Install Dependencies
run: npm install
Expand All @@ -52,19 +52,19 @@ jobs:

steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Use Node.js 14
uses: actions/setup-node@v1
name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 14
node-version: 20
-
name: Load Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
node_modules
build
key: cache-${{ github.run_id }}-v14
key: cache-${{ github.run_id }}-v20
-
run: npm run lint
run: npm run lint
38 changes: 19 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,29 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [10, 12, 14]
node-version: [16, 18, 20]

steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
-
name: Cache Node Modules
if: ${{ matrix.node-version == 14 }}
uses: actions/cache@v2
if: ${{ matrix.node-version == 20 }}
uses: actions/cache@v4
with:
path: |
node_modules
build
key: cache-${{ github.run_id }}-v14
key: cache-${{ github.run_id }}-v20
-
name: Install Dependencies
run: npm install
-
-
name: Add localhost-test to Linux hosts file
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo echo "127.0.0.1 localhost-test" | sudo tee -a /etc/hosts
Expand All @@ -56,20 +56,20 @@ jobs:

steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Use Node.js 14
uses: actions/setup-node@v1
name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 14
node-version: 20
-
name: Load Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
node_modules
build
key: cache-${{ github.run_id }}-v14
key: cache-${{ github.run_id }}-v20
-
run: npm run lint

Expand All @@ -82,20 +82,20 @@ jobs:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
uses: actions/checkout@v4
-
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 14
node-version: 20
registry-url: https://registry.npmjs.org/
-
name: Load Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
node_modules
build
key: cache-${{ github.run_id }}-v14
key: cache-${{ github.run_id }}-v20
-
# Determine if this is a beta or latest release
name: Set Release Tag
Expand All @@ -115,4 +115,4 @@ jobs:
run: |
git_tag=v`node -p "require('./package.json').version"`
git tag $git_tag
git push origin $git_tag
git push origin $git_tag

0 comments on commit ed4a7a0

Please sign in to comment.