mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 03:09:39 -06:00
Avoid testing in same CI jobs as releases (#58002)
This commit is contained in:
parent
e256ec1bff
commit
db35774f9f
24
.github/workflows/insiders.yaml
vendored
24
.github/workflows/insiders.yaml
vendored
@ -15,7 +15,27 @@ defaults:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
build:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'microsoft/TypeScript'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
||||
- run: |
|
||||
npm --version
|
||||
# corepack enable npm
|
||||
npm install -g $(jq -r '.packageManager' < package.json)
|
||||
npm --version
|
||||
- name: Test insiders
|
||||
run: |
|
||||
npm ci
|
||||
npx hereby configure-insiders
|
||||
npm test
|
||||
|
||||
publish:
|
||||
needs: test
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'microsoft/TypeScript'
|
||||
|
||||
@ -36,8 +56,6 @@ jobs:
|
||||
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}}
|
||||
|
||||
23
.github/workflows/nightly.yaml
vendored
23
.github/workflows/nightly.yaml
vendored
@ -16,7 +16,26 @@ defaults:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
build:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'microsoft/TypeScript'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
||||
- run: |
|
||||
npm --version
|
||||
# corepack enable npm
|
||||
npm install -g $(jq -r '.packageManager' < package.json)
|
||||
npm --version
|
||||
- name: Setup and publish nightly
|
||||
run: |
|
||||
npm ci
|
||||
npx hereby configure-nightly
|
||||
npm test
|
||||
|
||||
publish:
|
||||
needs: [test]
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'microsoft/TypeScript'
|
||||
|
||||
@ -37,8 +56,6 @@ jobs:
|
||||
npm ci
|
||||
npx hereby configure-nightly
|
||||
npx hereby LKG
|
||||
npx hereby runtests-parallel
|
||||
npx hereby clean
|
||||
npm publish --tag next
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
||||
|
||||
@ -28,8 +28,8 @@ extends:
|
||||
- stage: buildStage
|
||||
displayName: Build Stage
|
||||
jobs:
|
||||
- job: build
|
||||
displayName: Build
|
||||
- job: test
|
||||
displayName: Test
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
@ -52,6 +52,28 @@ extends:
|
||||
- script: 'npm test'
|
||||
displayName: 'npm test'
|
||||
|
||||
- job: build
|
||||
displayName: Build
|
||||
dependsOn: test
|
||||
steps:
|
||||
- checkout: self
|
||||
clean: true
|
||||
fetchDepth: 1
|
||||
fetchTags: false
|
||||
|
||||
- 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: |
|
||||
npx hereby LKG
|
||||
npx hereby clean
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user