-
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.
# Conflicts: # src/compiler/debug.ts
- Loading branch information
Showing
1,534 changed files
with
96,666 additions
and
28,512 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: New Release Branch | ||
|
||
on: | ||
repository_dispatch: | ||
types: new-release-branch | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Use node version 12.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 5 | ||
- 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 = `${versionMajorMinor}.0-.*`/const version = `${versionMajorMinor}.0-${{ github.event.client_payload.core_tag || 'dev' }}`/g' src/compiler/corePublic.ts | ||
npm install | ||
gulp LKG | ||
npm test | ||
git diff | ||
git add package.json | ||
git add src/compiler/corePublic.ts | ||
git add tests/baselines/reference/api/typescript.d.ts | ||
git add tests/baselines/reference/api/tsserverlibrary.d.ts | ||
git add ./lib | ||
git config user.email "ts_bot@rcavanaugh.com" | ||
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 }} |
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,32 @@ | ||
name: Publish Nightly | ||
|
||
on: | ||
schedule: | ||
- cron: '0 7 * * *' | ||
repository_dispatch: | ||
types: publish-nightly | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use node version 12 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Setup and publish nightly | ||
run: | | ||
npm whoami | ||
npm i | ||
gulp configure-nightly | ||
gulp LKG | ||
gulp runtests-parallel | ||
gulp clean | ||
npm publish --tag next | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
CI: true | ||
|
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,44 @@ | ||
name: Create Releasable Package Drop | ||
|
||
on: | ||
push: | ||
branches: | ||
- release-* | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use node version 12 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Remove existing TypeScript | ||
run: | | ||
npm uninstall typescript --no-save | ||
npm uninstall tslint --no-save | ||
- name: npm install and test | ||
run: | | ||
npm install | ||
npm update | ||
npm test | ||
env: | ||
CI: true | ||
- name: Validate the browser can import TypeScript | ||
run: gulp test-browser-integration | ||
- name: LKG, clean, and pack | ||
run: | | ||
gulp LKG | ||
gulp clean | ||
npm pack ./ | ||
mv typescript-*.tgz typescript.tgz | ||
env: | ||
CI: true | ||
- name: Upload built tarfile | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: tgz | ||
path: typescript.tgz | ||
|
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,44 @@ | ||
name: Set branch version | ||
|
||
on: | ||
repository_dispatch: | ||
types: set-version | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Use node version 12.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.client_payload.branch_name }} | ||
# notably, this is essentially the same script as `new-release-branch.yaml` (with fewer inputs), but it assumes the branch already exists | ||
# do note that executing the transform below will prevent the `configurePrerelease` script from running on the source, as it makes the | ||
# `version` identifier no longer match the regex it uses | ||
# required client_payload members: | ||
# branch_name - the target branch | ||
# package_version - the full version string (eg, `3.9.1-rc` or `3.9.2`) | ||
# core_major_minor - the major.minor pair associated with the desired package_version (eg, `3.9` for `3.9.3`) | ||
- run: | | ||
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 = .*;/const version = "${{ github.event.client_payload.package_version }}" as string;/g' src/compiler/corePublic.ts | ||
npm install | ||
gulp LKG | ||
npm test | ||
git diff | ||
git add package.json | ||
git add src/compiler/corePublic.ts | ||
git add tests/baselines/reference/api/typescript.d.ts | ||
git add tests/baselines/reference/api/tsserverlibrary.d.ts | ||
git add ./lib | ||
git config user.email "ts_bot@rcavanaugh.com" | ||
git config user.name "TypeScript Bot" | ||
git commit -m 'Bump version to ${{ github.event.client_payload.package_version }} and LKG' | ||
git push |
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,29 @@ | ||
name: Sync branch with master | ||
|
||
on: | ||
repository_dispatch: | ||
types: sync-branch | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Use node version 12.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.client_payload.branch_name }} | ||
# This does a test post-merge and only pushes the result if the test succeeds | ||
# required client_payload members: | ||
# branch_name - the target branch | ||
- run: | | ||
git config user.email "ts_bot@rcavanaugh.com" | ||
git config user.name "TypeScript Bot" | ||
git fetch origin master | ||
git merge master --no-ff | ||
npm install | ||
npm test | ||
git push |
Oops, something went wrong.