@inriver/inri 1.15.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
stages:
|
|
2
|
-
- stage:
|
|
2
|
+
- stage: BuildAndDeploy
|
|
3
3
|
variables:
|
|
4
4
|
- group: inri-access-token
|
|
5
5
|
jobs:
|
|
6
|
-
- job:
|
|
7
|
-
displayName:
|
|
8
|
-
|
|
6
|
+
- job: BuildAndDeploy
|
|
7
|
+
displayName: Build and deploy inri framework
|
|
9
8
|
steps:
|
|
10
9
|
- task: Cache@2
|
|
11
10
|
inputs:
|
|
@@ -13,10 +12,6 @@ stages:
|
|
|
13
12
|
path: $(Pipeline.Workspace)/.pnpm-store
|
|
14
13
|
displayName: Cache pnpm
|
|
15
14
|
|
|
16
|
-
- script: |
|
|
17
|
-
echo $(NPM_TOKEN)
|
|
18
|
-
displayName: test token
|
|
19
|
-
|
|
20
15
|
- script: |
|
|
21
16
|
corepack enable
|
|
22
17
|
corepack prepare pnpm@latest-8 --activate
|
|
@@ -33,18 +28,18 @@ stages:
|
|
|
33
28
|
- script: |
|
|
34
29
|
npm install -g pnpm
|
|
35
30
|
pnpm install --frozen-lockfile
|
|
36
|
-
|
|
37
|
-
NPM_TOKEN: $(NPM_TOKEN)
|
|
38
|
-
displayName: pnpm install
|
|
31
|
+
displayName: Install dependencies
|
|
39
32
|
|
|
40
33
|
- bash: |
|
|
41
34
|
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
|
42
35
|
env:
|
|
43
36
|
NPM_TOKEN: $(NPM_TOKEN)
|
|
44
37
|
displayName: Init .npmrc file
|
|
38
|
+
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
|
|
45
39
|
|
|
46
40
|
- script: |
|
|
47
41
|
pnpm publish:ci --no-git-checks
|
|
48
42
|
env:
|
|
49
43
|
NPM_TOKEN: $(NPM_TOKEN)
|
|
50
44
|
displayName: Publish inri framework
|
|
45
|
+
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
jobs:
|
|
2
|
+
- job: Publish
|
|
3
|
+
displayName: Publish inri framework
|
|
4
|
+
steps:
|
|
5
|
+
- bash: |
|
|
6
|
+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
|
7
|
+
env:
|
|
8
|
+
NPM_TOKEN: $(NPM_TOKEN)
|
|
9
|
+
displayName: Init .npmrc file
|
|
10
|
+
|
|
11
|
+
- task: Cache@2
|
|
12
|
+
inputs:
|
|
13
|
+
key: 'pnpm | "$(Agent.OS)" | pnpm-lock.yaml'
|
|
14
|
+
path: $(Pipeline.Workspace)/.pnpm-store
|
|
15
|
+
displayName: Cache pnpm
|
|
16
|
+
|
|
17
|
+
- script: |
|
|
18
|
+
corepack enable
|
|
19
|
+
corepack prepare pnpm@latest-8 --activate
|
|
20
|
+
displayName: Setup pnpm
|
|
21
|
+
|
|
22
|
+
- script: pnpm config set store-dir $(Pipeline.Workspace)/.pnpm-store
|
|
23
|
+
displayName: setup pnpm config
|
|
24
|
+
|
|
25
|
+
- task: NodeTool@0
|
|
26
|
+
inputs:
|
|
27
|
+
versionSpec: 16.x
|
|
28
|
+
displayName: Install Node.js
|
|
29
|
+
|
|
30
|
+
- script: |
|
|
31
|
+
npm install -g pnpm
|
|
32
|
+
pnpm install --frozen-lockfile
|
|
33
|
+
displayName: Install pnpm
|
|
34
|
+
|
|
35
|
+
- script: |
|
|
36
|
+
pnpm publish:ci --no-git-checks
|
|
37
|
+
env:
|
|
38
|
+
NPM_TOKEN: $(NPM_TOKEN)
|
|
39
|
+
displayName: Publish inri framework
|