mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
`npm ci` doesn't try to reconcile package.json with package-lock.json, nor with any existing packages in `node_modules`. `npm ci` simply deletes `node_modules` and uses the packages from `package-lock.json`. As a result, `npm ci` is much, much faster than `npm install`. We should use it wherever possible.
21 lines
565 B
YAML
21 lines
565 B
YAML
trigger: none # No CI builds, only PR builds
|
|
|
|
jobs:
|
|
- job: GetReleaseVersion
|
|
pool:
|
|
vmImage: 'ubuntu-latest'
|
|
steps:
|
|
# This has to be done separately because VSTS inexplicably
|
|
# exits the script block after `npm ci` completes.
|
|
- script: |
|
|
cd script/vsts
|
|
npm ci
|
|
displayName: npm ci
|
|
- script: node script/vsts/get-release-version.js
|
|
name: Version
|
|
|
|
# Import OS-specific build definitions
|
|
- template: platforms/windows.yml
|
|
- template: platforms/macos.yml
|
|
- template: platforms/linux.yml
|