Welcome to mirror list, hosted at ThFree Co, Russian Federation.

.gitlab-ci.yml - git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2d808d8a89ad89c7b345a65a67f60a32540af469 (plain)
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
stages:
  - publishing

image: node:13-alpine

Publish Alpha:
  stage: publishing
  script:
    - sed -i -e "s|-alpha1000|-alpha.${CI_PIPELINE_ID}|g" ./package.json
    - npm publish --tag alpha
  environment:
    name: Alpha
  only:
    - master

Publish Beta:
  stage: publishing
  script:
    - sed -i -e "s|-alpha1000|-beta.${CI_PIPELINE_ID}|g" ./package.json
    - npm publish --tag beta
  environment:
    name: Beta
  only:
    - testing

Publish Release:
  stage: publishing
  script:
    - sed -i -e "s|-alpha1000||g" ./package.json
    - npm publish --tag latest
  environment:
    name: Stable
  only:
    - stable