Created
November 23, 2022 06:23
-
-
Save cosemansp/742ffabf15028dc6a43c586a54648431 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
variables: | |
pnpm_config_cache: $(Pipeline.Workspace)/.pnpm-store | |
trigger: | |
- main | |
pool: | |
vmImage: ubuntu-latest | |
steps: | |
- task: Cache@2 | |
inputs: | |
key: 'pnpm | "$(Agent.OS)" | pnpm-lock.yaml' | |
path: $(pnpm_config_cache) | |
displayName: Cache pnpm | |
- script: | | |
curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7 | |
pnpm config set store-dir $(pnpm_config_cache) | |
displayName: "Setup pnpm" | |
- script: | | |
pnpm install | |
pnpm run build | |
displayName: "pnpm install and build" | |
- task: ArchiveFiles@2 | |
inputs: | |
rootFolderOrFile: "." | |
includeRootFolder: false | |
archiveType: "zip" | |
archiveFile: "$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip" | |
replaceExistingArchive: true | |
- task: PublishBuildArtifacts@1 | |
inputs: | |
PathtoPublish: "$(Build.ArtifactStagingDirectory)" | |
ArtifactName: "drop" | |
publishLocation: "Container" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment