Skip to content
Discussion options

You must be logged in to vote

Select Topic Area

Show & Tell

Body

trigger:

  • main

pool: vmImage: 'ubuntu-latest'

variables: nodeVersion: '18.x'

steps:

Install Node.js

  • task: UseNode@1
    inputs:
    version: $(nodeVersion)
    displayName: 'Install Node.js'

Install dependencies

  • script: |
    npm install
    displayName: 'Install dependencies'

Build the project

  • script: |
    npm run build
    displayName: 'Build project'

Run tests

  • script: |
    npm test
    displayName: 'Run tests'

Copy project files to artifact staging directory

  • task: CopyFiles@2
    inputs:
    sourceFolder: '$(Build.SourcesDirectory)'
    contents: |
    src/**
    public/**
    targetFolder: '$(Build.ArtifactStagingDirectory)'
    displayName: 'Copy project files'

Publish pipeline artifact

  • task: Publ…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bryanpancito612
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Codespaces Your development environment, in the cloud. Run VS Code and code on GitHub's cloud platform, Show & Tell Discussions where community members share their projects, experiments, or accomplishments
2 participants