-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into unicodeSets
- Loading branch information
Showing
3,857 changed files
with
85,973 additions
and
282,216 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | ||
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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,40 @@ | ||
name: New Release Branch | ||
|
||
on: | ||
repository_dispatch: | ||
types: [new-release-branch] | ||
workflow_dispatch: | ||
inputs: | ||
branch_name: | ||
description: Release branch name to create | ||
required: true | ||
type: string | ||
package_version: | ||
description: Release package version | ||
required: true | ||
type: string | ||
core_major_minor: | ||
description: Release core major.minor version | ||
required: true | ||
type: string | ||
|
||
# Inputs provided by the bot | ||
distinct_id: | ||
description: '(bot) A distinct ID' | ||
required: false | ||
default: '' | ||
source_issue: | ||
description: '(bot) The issue that triggered this workflow' | ||
required: false | ||
default: '' | ||
requesting_user: | ||
description: '(bot) The user who requested this workflow' | ||
required: false | ||
default: '' | ||
status_comment: | ||
description: '(bot) The comment to update with the status of this workflow' | ||
required: false | ||
default: '' | ||
|
||
run-name: ${{ github.workflow }}${{ inputs.distinct_id && format(' (bot run {0})', inputs.distinct_id) || '' }} | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -30,12 +62,12 @@ jobs: | |
npm install -g $(jq -r '.packageManager' < package.json) | ||
npm --version | ||
- run: | | ||
git checkout -b ${{ github.event.client_payload.branch_name }} | ||
sed -i -e 's/"version": ".*"/"version": "${{ github.event.client_payload.package_version }}"/g' package.json | ||
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' src/compiler/corePublic.ts | ||
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/api/typescript.d.ts | ||
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ github.event.client_payload.core_major_minor }}"/g' tests/baselines/reference/api/tsserverlibrary.d.ts | ||
sed -i -e 's/const version\(: string\)\{0,1\} = .*;/const version = "${{ github.event.client_payload.package_version }}" as string;/g' src/compiler/corePublic.ts | ||
git checkout -b ${{ inputs.branch_name }} | ||
sed -i -e 's/"version": ".*"/"version": "${{ inputs.package_version }}"/g' package.json | ||
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ inputs.core_major_minor }}"/g' src/compiler/corePublic.ts | ||
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ inputs.core_major_minor }}"/g' tests/baselines/reference/api/typescript.d.ts | ||
sed -i -e 's/const versionMajorMinor = ".*"/const versionMajorMinor = "${{ inputs.core_major_minor }}"/g' tests/baselines/reference/api/tsserverlibrary.d.ts | ||
sed -i -e 's/const version\(: string\)\{0,1\} = .*;/const version = "${{ inputs.package_version }}" as string;/g' src/compiler/corePublic.ts | ||
npm ci | ||
npm install # update package-lock.json to ensure the version bump is included | ||
npx hereby LKG | ||
|
@@ -48,5 +80,16 @@ jobs: | |
git add --force ./lib | ||
git config user.email "[email protected]" | ||
git config user.name "TypeScript Bot" | ||
git commit -m 'Bump version to ${{ github.event.client_payload.package_version }} and LKG' | ||
git push --set-upstream origin ${{ github.event.client_payload.branch_name }} | ||
git commit -m 'Bump version to ${{ inputs.package_version }} and LKG' | ||
git push --set-upstream origin ${{ inputs.branch_name }} | ||
- uses: microsoft/typescript-bot-test-triggerer/.github/actions/post-workflow-result@master | ||
if: ${{ !cancelled() && inputs.distinct_id }} | ||
with: | ||
success_comment: "I've created ${{ inputs.branch_name }} with version ${{ inputs.package_version }} for you." | ||
failure_comment: 'I was unable to create the new release branch.' | ||
github_token: ${{ secrets.TS_BOT_GITHUB_TOKEN }} | ||
distinct_id: ${{ inputs.distinct_id }} | ||
source_issue: ${{ inputs.source_issue }} | ||
requesting_user: ${{ inputs.requesting_user }} | ||
status_comment: ${{ inputs.status_comment }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.