Switch to @yao-pkg/pkg to build executables again
Change-Id: I33c78c05b28c0050dc54c506cdc217b4be93f2d9
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7d1269b..25b28c3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,20 +1,22 @@
-image: node:latest
+default:
+ image: node:22
+ cache:
+ key:
+ files:
+ - package-lock.json
+ paths:
+ - node_modules/
stages:
- test
- build
- deploy
-cache:
- paths:
- - node_modules/
-
# Run npm tests
test:
stage: test
- before_script:
- - npm install
script:
+ - npm ci
- npm test
# Test Docker image build
@@ -97,13 +99,18 @@
- docker push --all-tags korap/conllu-cmc
# Build standalone binaries
-package:
+build:
stage: build
- before_script:
- - npm install
script:
+ - npm ci
+ - mkdir -p bin/linux bin/macos bin/win
- npm run pkg-linux
- npm run pkg-macos
+ - npm run pkg-win
artifacts:
+ name: "conllu2cmc-${CI_COMMIT_REF_SLUG}"
paths:
- - bin/
+ - bin/linux/conllu2cmc
+ - bin/macos/conllu2cmc
+ - bin/win/conllu2cmc.exe
+ expire_in: 4 weeks