microsoft/TypeAgent

Public

mirrored fromhttps://github.com/microsoft/TypeAgentAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/fix-github-actions-workflow-another-one

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

pipelines/include-prepare-repo.yml

42lines · modecode

1# Copyright (c) Microsoft Corporation.
2# Licensed under the MIT License.
3
4parameters:
5 - name: buildDirectory
6 type: string
7 - name: nodeVersion
8 type: string
9 - name: registry
10 type: string
11
12steps:
13 - checkout: self
14 displayName: "Checkout TypeAgent Repository"
15 path: typeagent
16
17 - bash: |
18 echo "registry=${{ parameters.registry }}" > .npmrc
19 echo "always-auth=true" >> .npmrc
20 cat .npmrc
21 displayName: Set npm registry
22 workingDirectory: ${{ parameters.buildDirectory }}
23
24 - task: npmAuthenticate@0
25 displayName: Authenticate to npm registry
26 inputs:
27 workingFile: ${{ parameters.buildDirectory }}/.npmrc
28
29 - task: UseNode@1
30 displayName: Setup Node.js v${{ parameters.nodeVersion }}
31 inputs:
32 version: ${{ parameters.nodeVersion }}
33 checkLatest: true
34
35 - template: include-install-pnpm.yml
36 parameters:
37 buildDirectory: ${{ parameters.buildDirectory }}
38
39 - script: |
40 pnpm install --frozen-lockfile --strict-peer-dependencies
41 displayName: "Install dependencies"
42 workingDirectory: ${{ parameters.buildDirectory }}
43