mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
Add replacement release pipeline (#57363)
This commit is contained in:
43
.github/workflows/insiders.yaml
vendored
Normal file
43
.github/workflows/insiders.yaml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: Publish Insiders
|
||||
|
||||
on:
|
||||
workflow_dispatch: {}
|
||||
repository_dispatch:
|
||||
types: [publish-insiders]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# Ensure scripts are run with pipefail. See:
|
||||
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'microsoft/TypeScript'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
|
||||
with:
|
||||
# Use NODE_AUTH_TOKEN environment variable to authenticate to this registry.
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: |
|
||||
npm --version
|
||||
# corepack enable npm
|
||||
npm install -g $(jq -r '.packageManager' < package.json)
|
||||
npm --version
|
||||
- name: Setup and publish insiders
|
||||
run: |
|
||||
npm whoami
|
||||
npm ci
|
||||
npx hereby configure-insiders
|
||||
npx hereby LKG
|
||||
npx hereby runtests-parallel
|
||||
npx hereby clean
|
||||
npm publish --tag insiders
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
||||
64
azure-pipelines.release.yml
Normal file
64
azure-pipelines.release.yml
Normal file
@@ -0,0 +1,64 @@
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- release-*
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
- repository: 1esPipelines
|
||||
type: git
|
||||
name: 1ESPipelineTemplates/1ESPipelineTemplates
|
||||
ref: refs/tags/release
|
||||
|
||||
extends:
|
||||
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
|
||||
parameters:
|
||||
pool:
|
||||
name: AzurePipelines-EO
|
||||
image: 1ESPT-Mariner2.0
|
||||
os: linux
|
||||
|
||||
stages:
|
||||
- stage: buildStage
|
||||
displayName: Build Stage
|
||||
jobs:
|
||||
- job: build
|
||||
displayName: Build
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: 20.x
|
||||
displayName: 'Install Node'
|
||||
|
||||
- script: |
|
||||
npm install -g `node -e 'console.log(JSON.parse(fs.readFileSync("package.json", "utf8")).packageManager)'`
|
||||
npm --version
|
||||
displayName: 'Install packageManager from package.json'
|
||||
|
||||
- script: npm ci
|
||||
displayName: 'npm ci'
|
||||
|
||||
- script: 'npm test'
|
||||
displayName: 'npm test'
|
||||
|
||||
- script: |
|
||||
npx hereby LKG
|
||||
npx hereby clean
|
||||
npm pack
|
||||
displayName: 'LKG, clean, pack'
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
|
||||
inputs:
|
||||
SourceFolder: ./
|
||||
Contents: 'typescript-*.tgz'
|
||||
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||
|
||||
- task: PublishPipelineArtifact@0
|
||||
displayName: 'Publish Pipeline Artifact'
|
||||
inputs:
|
||||
artifactName: tgz
|
||||
targetPath: '$(Build.ArtifactStagingDirectory)'
|
||||
Reference in New Issue
Block a user