-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adopt publish pipeline * use prepack * update pipeline
- Loading branch information
Showing
6 changed files
with
91 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: PR Chat | ||
on: | ||
pull_request_target: | ||
types: [opened, ready_for_review, closed] | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
if: ${{ !github.event.pull_request.draft }} | ||
steps: | ||
- name: Checkout Actions | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: "microsoft/vscode-github-triage-actions" | ||
ref: stable | ||
path: ./actions | ||
- name: Install Actions | ||
run: npm install --production --prefix ./actions | ||
- name: Run Code Review Chat | ||
uses: ./actions/code-review-chat | ||
with: | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
slack_token: ${{ secrets.SLACK_TOKEN }} | ||
slack_bot_name: "VSCodeBot" | ||
notification_channel: codereview |
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 |
---|---|---|
|
@@ -10,14 +10,12 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14.x | ||
node-version: 16.x | ||
- name: Install root project dependencies | ||
run: npm install | ||
- name: Build and run tests | ||
uses: GabrielBB/[email protected] | ||
with: | ||
run: npm test | ||
run: npm test |
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,9 @@ | ||
{ | ||
"git.branchProtection": [ | ||
"main" | ||
], | ||
"git.branchProtectionPrompt": "alwaysCommitToNewBranch", | ||
"git.branchRandomName.enable": true, | ||
"githubPullRequests.assignCreated": "${user}", | ||
"githubPullRequests.defaultMergeMethod": "squash" | ||
} |
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,50 @@ | ||
name: $(Date:yyyyMMdd)$(Rev:.r) | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- main | ||
pr: none | ||
|
||
resources: | ||
repositories: | ||
- repository: templates | ||
type: github | ||
name: microsoft/vscode-engineering | ||
ref: main | ||
endpoint: Monaco | ||
|
||
parameters: | ||
- name: publishPackage | ||
displayName: 🚀 Publish request-light | ||
type: boolean | ||
default: false | ||
|
||
extends: | ||
template: azure-pipelines/npm-package/pipeline.yml@templates | ||
parameters: | ||
npmPackages: | ||
- name: request-light | ||
|
||
buildSteps: | ||
- script: npm ci | ||
displayName: Install dependencies | ||
|
||
testPlatforms: | ||
- name: Linux | ||
nodeVersions: | ||
- 16.x | ||
- name: MacOS | ||
nodeVersions: | ||
- 16.x | ||
- name: Windows | ||
nodeVersions: | ||
- 16.x | ||
|
||
testSteps: | ||
- script: npm ci | ||
displayName: Install dependencies | ||
- script: npm test | ||
displayName: Test npm package | ||
|
||
publishPackage: ${{ parameters.publishPackage }} |
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