Skip to content

Commit

Permalink
Update workflows to use node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
walfie committed Jun 16, 2024
1 parent 0910b21 commit 6aa18cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 29 deletions.
29 changes: 6 additions & 23 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,17 @@ on:
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
node-version:
- 13.x

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

steps:
- name: Checkout code
uses: actions/[email protected]

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Get yarn cache directory path
id: yarn
run: echo "::set-output name=dir::$(yarn cache dir)"
uses: actions/checkout@v4

- name: Restore yarn cache
uses: actions/[email protected]
- name: Use Node.js
uses: actions/setup-node@v4
with:
path: ${{ steps.yarn.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: 20
cache: yarn

- name: Install packages
run: yarn --frozen-lockfile
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ A website for making Animal Crossing tunes, written in OCaml with

- Install dependencies

```
```sh
yarn install
```

- Run the development server

```
```sh
yarn dev
```

Expand All @@ -28,7 +28,7 @@ classes/elements to exist.

## Production

```
```sh
yarn run build
```

Expand All @@ -46,18 +46,18 @@ in `static/CNAME` if you're using your CNAME).

- Install OCaml 4.06.1 (Note: BuckleScript requires 4.06.x)

```
```sh
opam switch create 4.06.1
```

- Install OCaml-LSP and ocamlformat

```
```sh
opam pin add ocaml-lsp-server https://github.com/ocaml/ocaml-lsp.git
opam install ocaml-lsp-server
```

```
```sh
opam install ocamlformat
```

Expand Down

0 comments on commit 6aa18cf

Please sign in to comment.