feat(ci): replace node with bun

This commit is contained in:
Ming Di Leom 2023-10-02 01:02:25 +00:00
parent 6e837d53c6
commit a81e34a62e
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
image: node:alpine # Use latest version of Node.js on Alpine image: oven/bun:alpine
cache: cache:
paths: paths:
@ -13,11 +13,11 @@ build:
before_script: before_script:
- apk update && apk add git - apk update && apk add git
- npm install - bun install
script: script:
# Generate site # Generate site
- npm run build - bun run build
rules: rules:
# Only trigger through push & "Run pipeline" events not in "site" branch; Skip in renovate job # Only trigger through push & "Run pipeline" events not in "site" branch; Skip in renovate job
@ -85,11 +85,11 @@ deploy_pages:
renovate: renovate:
before_script: before_script:
- apk update && apk add git - apk update && apk add git
- npm install - bun install
script: script:
- npm install snyk @snyk/protect && npm run snyk - bun install snyk @snyk/protect && bun run snyk
- npm install renovate && npm run renovate - bun install renovate && bun run renovate
# No artifact # No artifact
dependencies: [] dependencies: []