Skip to content

Commit

Permalink
chore: update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
djm158 committed Dec 19, 2024
1 parent e7f35be commit c35a8ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,25 @@ on:

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
matrix:
# TODO(68): Add `windows-latest` and support.
os: [ubuntu-latest]
node-version: [14.x, 16.x, 18.x]
node-version: [18.x]

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 }}

# Note: Yarn root cache restore is slow (1:30) on Windows, so only do on Linux.
- name: Get Yarn cache directory
if: runner.os != 'Windows'
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Use Yarn cache
if: runner.os != 'Windows'
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-${{ runner.os }}-${{ matrix.node-version }}-
yarn-${{ runner.os }}-
cache: "yarn"

- name: Use node_modules cache
id: node-modules-cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
packages: write
pull-requests: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18

Expand Down

0 comments on commit c35a8ff

Please sign in to comment.