Skip to content

Commit

Permalink
Update tools used in GitHub Actions (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysangkok authored Jul 9, 2024
1 parent 6ce639a commit 54a188a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
git config --global core.eol lf
git config --global core.longpaths true
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# NB: We install gnu-tar because BSD tar is buggy on Github's macos machines,
# and it breaks the cache: https://github.com/actions/cache/issues/403
Expand All @@ -36,12 +36,12 @@ jobs:
echo "/usr/local/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
- name: Setup node and npm
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22

- name: Cache NPM dependencies
uses: actions/cache@v2
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand All @@ -53,10 +53,10 @@ jobs:
${{ runner.os }}-
- name: Install global NPM packages
run: npm i --global [email protected].10 spago@next purs-tidy@latest esbuild@latest
run: npm i --global [email protected].15 spago@next purs-tidy@latest esbuild@latest

- name: Cache PureScript dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.yaml') }}
path: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
matrix:
include:
- os: ubuntu-latest
image: haskell:9.2.4
image: haskell:9.2.8
- os: macOS-latest
- os: windows-latest
steps:
Expand All @@ -47,10 +47,10 @@ jobs:
git config --global core.autocrlf false
git config --global core.eol lf
git config --global core.longpaths true
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Haskell (macOS and Windows)
if: runner.os != 'Linux'
uses: haskell/actions/setup@v1
uses: haskell-actions/setup@v2
with:
stack-version: ${{ env.STACK_VERSION }}
enable-stack: true
Expand All @@ -61,9 +61,9 @@ jobs:
[ "$(stack --numeric-version)" = "$STACK_VERSION" ]
chown root:root .
- name: Setup node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
# NB: We install gnu-tar because BSD tar is buggy on Github's macos machines,
# and it breaks the cache: https://github.com/actions/cache/issues/403
- name: Install GNU tar (macOS)
Expand Down Expand Up @@ -124,10 +124,10 @@ jobs:
needs: build_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
- name: Publish to NPM
shell: bash
env:
Expand Down

0 comments on commit 54a188a

Please sign in to comment.