Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt NPM build & publish pipeline #791

Merged
merged 7 commits into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions .github/workflows/ci.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/lint-pr.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

21 changes: 12 additions & 9 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
.github/
.husky/
.vscode/
build/
src/
test

out/test/
.gitignore
tsconfig.json
tsd.json
**/*.js.map
yarn.lock
.travis.yml
.vscode/
out/**/*.d.ts
!out/api.d.ts

.dockerignore
Dockerfile
.gitignore
.prettierignore
Dockerfile
SECURITY.md
tsconfig.json
**/*.js.map
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Depending on your distribution, you will need to run the following command:
Install vsce globally:

```console
npm install --global vsce
npm install --global @vscode/vsce
```

Verify the installation:
Expand Down
40 changes: 40 additions & 0 deletions build/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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
type: boolean
default: false

extends:
template: azure-pipelines/npm-package/pipeline.yml@templates
parameters:
npmPackages:
- name: vsce
buildSteps:
- script: npm ci
- script: npm run build
testPlatforms:
- name: Linux
nodeVersions: [14.x, 16.x, 17.x]
- name: MacOS
nodeVersions: [14.x, 16.x, 17.x]
- name: Windows
nodeVersions: [14.x, 16.x, 17.x]
testSteps:
- script: npm ci
- script: npm test
publishPackage: ${{ parameters.publishPackage }}
Loading