feat: support Bun

This commit is contained in:
Ming Di Leom 2023-10-01 10:38:41 +00:00
parent 5d8e3082d8
commit 21fe97dc0a
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
image: node:lts-alpine
image: oven/bun:alpine
include:
- template: Security/Secret-Detection.gitlab-ci.yml
@ -58,7 +58,7 @@ netlify:
- build_job
before_script:
- npm install netlify-cli -g
- bun install -g netlify-cli
- netlify --telemetry-disable
script:

View File

@ -34,6 +34,11 @@ check_grep() {
}
check_grep
if command -v bun &> /dev/null; then
alias node="bun"
fi
node --version
mkdir -p "tmp/"
cd "tmp/"