Skip to content

Commit

Permalink
Run builds on node:20.9.0-bullseye-slim container
Browse files Browse the repository at this point in the history
  • Loading branch information
oNaiPs committed Nov 15, 2023
1 parent 8f436ea commit 5f8422d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: node:20.9.0-alpine

steps:
- uses: actions/checkout@v4
- name: Install git
run: |
apk add --no-cache git
git config --global --add safe.directory $(realpath .)
- name: Set Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
- uses: actions/checkout@v4

- name: Install dependencies
run: yarn install --immutable
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"format": "prettier --write '**/*.ts'",
"format-check": "prettier --check '**/*.ts'",
"lint": "eslint src/**/*.ts",
"package": "ncc build --source-map --license licenses.txt",
"package": "ncc build --no-cache --source-map --license licenses.txt --external encoding",
"test": "jest",
"all": "yarn run build && yarn run format && yarn run lint && yarn run package && yarn test"
},
Expand Down

0 comments on commit 5f8422d

Please sign in to comment.