Skip to content

Commit ae6186d

Browse files
author
Emanuel Bodin
committed
added azure pipelines
1 parent 1583ec2 commit ae6186d

File tree

3 files changed

+88
-26
lines changed

3 files changed

+88
-26
lines changed

.azure/azure-pipelines.push.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
trigger:
2+
branches:
3+
include:
4+
- main
5+
pr:
6+
- main
7+
8+
resources:
9+
repositories:
10+
- repository: cet-iac
11+
type: git
12+
name: Cloud Excellence Team/cet-iac
13+
ref: main
14+
15+
pool:
16+
vmImage: 'ubuntu-latest'
17+
18+
stages:
19+
- stage: build_test
20+
displayName: Build and test
21+
22+
jobs:
23+
- job: unit_test
24+
displayName: Unit test
25+
steps:
26+
- template: templates/test/npm-test.yml@cet-iac
27+
parameters:
28+
nodeVersion: 18

.azure/azure-pipelines.release.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
trigger: none
2+
pr: none
3+
4+
parameters:
5+
- name: version
6+
type: string
7+
default: prerelease
8+
values:
9+
- prerelease
10+
- patch
11+
- minor
12+
- major
13+
- prepatch
14+
- preminor
15+
- premajor
16+
- name: dryRun
17+
type: boolean
18+
default: false
19+
- name: pushTags
20+
type: boolean
21+
default: true
22+
23+
variables:
24+
- group: team-webb-general-params
25+
26+
resources:
27+
repositories:
28+
- repository: cet-iac
29+
type: git
30+
name: Cloud Excellence Team/cet-iac
31+
ref: main
32+
33+
pool:
34+
vmImage: 'ubuntu-latest'
35+
36+
stages:
37+
- stage: build_test
38+
displayName: Build and test
39+
40+
jobs:
41+
- job: unit_test
42+
displayName: Unit test
43+
steps:
44+
- template: templates/test/npm-test.yml@cet-iac
45+
parameters:
46+
nodeVersion: 18
47+
48+
- stage: release
49+
displayName: Release
50+
51+
jobs:
52+
- job: npm_publish
53+
displayName: Publish NPM package
54+
steps:
55+
- template: templates/npm/publish.yml@cet-iac
56+
parameters:
57+
nodeVersion: 18
58+
version: ${{ parameters.version }}
59+
dryRun: ${{ parameters.dryRun }}
60+
pushTags: ${{ parameters.pushTags }}

.github/workflows/main.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)