forked from gdelmas/typedoc-plugin-sourcefile-url
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8a436e
commit 1e54a60
Showing
1 changed file
with
80 additions
and
0 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,80 @@ | ||
# Node.js | ||
# Build a general Node.js project with npm. | ||
# Add steps that analyze code, save build artifacts, deploy, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript | ||
|
||
trigger: | ||
- master | ||
|
||
pool: | ||
vmImage: ubuntu-latest | ||
|
||
variables: | ||
libraryCounter: 'TypedocPluginDevopsSourceFileTS_$(Davisol.TypedocPluginDevopsSourceFileTsMajorMinorVersion)' | ||
libraryBuildRevision: $[counter(variables['libraryCounter'], 200)] | ||
libraryBuildVersion: '$(Davisol.TypedocPluginDevopsSourceFileTsMajorMinorVersion).$(libraryBuildRevision)' | ||
|
||
name: 'TypedocPluginDevopsSourceFile_TS_v$(Davisol.TypedocPluginDevopsSourceFileTsMajorMinorVersion).$(libraryBuildRevision)$(Rev:.r)' | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
inputs: | ||
versionSpec: '14.x' | ||
displayName: 'Install Node.js' | ||
|
||
- script: | | ||
npm install | ||
displayName: 'npm install' | ||
|
||
- script: | | ||
npm version patch -m 'Bump version to %s' | ||
displayName: 'npm bump version' | ||
|
||
- script: | | ||
npm install | ||
displayName: 'npm build' | ||
|
||
- script: | | ||
git push | ||
displayName: 'push bumped version to origin repo' | ||
|
||
- task: CopyFiles@2 | ||
inputs: | ||
SourceFolder: '$(System.DefaultWorkingDirectory)' | ||
Contents: | | ||
package.json | ||
**.md | ||
TargetFolder: '$(System.DefaultWorkingDirectory)/dist' | ||
OverWrite: true | ||
displayName: 'copy static files to output directory' | ||
|
||
|
||
|
||
- task: CopyFiles@2 | ||
inputs: | ||
SourceFolder: '$(System.DefaultWorkingDirectory)/dist' | ||
Contents: '**' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' | ||
OverWrite: true | ||
displayName: 'deploy output directory contents to artifact stage' | ||
|
||
- task: GitHubRelease@1 | ||
inputs: | ||
gitHubConnection: 'github.com_shuebner20' | ||
repositoryName: '$(Build.Repository.Name)' | ||
action: 'create' | ||
target: '$(Build.SourceVersion)' | ||
tagSource: 'gitTag' | ||
releaseNotesSource: 'inline' | ||
isDraft: true | ||
changeLogCompareToRelease: 'lastFullRelease' | ||
changeLogType: 'commitBased' | ||
displayName: 'create release at GitHub' | ||
|
||
- task: Npm@1 | ||
inputs: | ||
command: 'publish' | ||
workingDir: '$(System.DefaultWorkingDirectory)/dist' | ||
publishRegistry: 'useFeed' | ||
publishFeed: '2ecdc2b4-96cd-42e2-b46d-52fd45177053/56115eca-361e-4c4a-a490-94c430a57cb7' | ||
enabled: false |