File tree Expand file tree Collapse file tree 2 files changed +107
-0
lines changed Expand file tree Collapse file tree 2 files changed +107
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Insiders
2+
3+ on :
4+ workflow_dispatch : {}
5+ repository_dispatch :
6+ types : [publish-insiders]
7+
8+ permissions :
9+ contents : read
10+
11+ # Ensure scripts are run with pipefail. See:
12+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
13+ defaults :
14+ run :
15+ shell : bash
16+
17+ jobs :
18+ build :
19+ runs-on : ubuntu-latest
20+ if : github.repository == 'microsoft/TypeScript'
21+
22+ steps :
23+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
24+ - uses : actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
25+ with :
26+ # Use NODE_AUTH_TOKEN environment variable to authenticate to this registry.
27+ registry-url : https://registry.npmjs.org/
28+ - run : |
29+ npm --version
30+ # corepack enable npm
31+ npm install -g $(jq -r '.packageManager' < package.json)
32+ npm --version
33+ - name : Setup and publish insiders
34+ run : |
35+ npm whoami
36+ npm ci
37+ npx hereby configure-insiders
38+ npx hereby LKG
39+ npx hereby runtests-parallel
40+ npx hereby clean
41+ npm publish --tag insiders
42+ env :
43+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
Original file line number Diff line number Diff line change 1+ trigger :
2+ branches :
3+ include :
4+ - release-*
5+
6+ resources :
7+ repositories :
8+ - repository : 1esPipelines
9+ type : git
10+ name : 1ESPipelineTemplates/1ESPipelineTemplates
11+ ref : refs/tags/release
12+
13+ extends :
14+ template : v1/1ES.Official.PipelineTemplate.yml@1esPipelines
15+ parameters :
16+ pool :
17+ name : AzurePipelines-EO
18+ image : 1ESPT-Mariner2.0
19+ os : linux
20+
21+ stages :
22+ - stage : buildStage
23+ displayName : Build Stage
24+ jobs :
25+ - job : build
26+ displayName : Build
27+ steps :
28+ - checkout : self
29+ clean : true
30+
31+ - task : NodeTool@0
32+ inputs :
33+ versionSpec : 20.x
34+ displayName : ' Install Node'
35+
36+ - script : |
37+ npm install -g `node -e 'console.log(JSON.parse(fs.readFileSync("package.json", "utf8")).packageManager)'`
38+ npm --version
39+ displayName: 'Install packageManager from package.json'
40+
41+ - script : npm ci
42+ displayName : ' npm ci'
43+
44+ - script : ' npm test'
45+ displayName : ' npm test'
46+
47+ - script : |
48+ npx hereby LKG
49+ npx hereby clean
50+ npm pack
51+ displayName: 'LKG, clean, pack'
52+
53+ - task : CopyFiles@2
54+ displayName : ' Copy Files to: $(Build.ArtifactStagingDirectory)'
55+ inputs :
56+ SourceFolder : ./
57+ Contents : ' typescript-*.tgz'
58+ TargetFolder : ' $(Build.ArtifactStagingDirectory)'
59+
60+ - task : PublishPipelineArtifact@0
61+ displayName : ' Publish Pipeline Artifact'
62+ inputs :
63+ artifactName : tgz
64+ targetPath : ' $(Build.ArtifactStagingDirectory)'
You can’t perform that action at this time.
0 commit comments