-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
67 lines (61 loc) · 1.29 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
stages:
- build
- test
- publish
cargo_make:
stage: build
tags:
- windows
script:
- cargo make
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: $CI_MERGE_REQUEST_ID
- if: $CI_COMMIT_TAG
cargo_test:
stage: test
tags:
- windows
script:
- cargo make test
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: $CI_MERGE_REQUEST_ID
- if: $CI_COMMIT_TAG
cargo_publish:
stage: publish
tags:
- windows
script:
- cargo publish
rules:
- if: $CI_COMMIT_TAG
pnpm_build:
stage: build
tags:
- windows
script:
- pnpm install
- pnpm --filter binding build
- pnpm --filter core build
artifacts:
paths:
- $CI_PROJECT_DIR/packages/binding/index.js
- $CI_PROJECT_DIR/packages/binding/index.d.ts
- $CI_PROJECT_DIR/packages/binding/npm
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: $CI_MERGE_REQUEST_ID
- if: $CI_COMMIT_TAG
pnpm_publish:
stage: publish
tags:
- windows
script:
- echo "@npm:registry=https://registry.npmjs.org" > .npmrc
- echo "//registry.npmjs.org/:_authToken=$Env:NPM_TOKEN" >> .npmrc
- pnpm --filter binding publish --access public
- pnpm --filter core publish --access public
rules:
- if: $CI_COMMIT_TAG