Skip to content

Basic Pipeline

Sergii Bomko edited this page Mar 11, 2020 · 2 revisions

Step 1: Create pipeline

Open GitHub repository → Actions → New WorkflowSet up a workflow yourself

create-pipeline

Step 2: Modify main.yml file

  • Define a trigger of the pipeline (e.g. only on master branch)

    on:
      push:
        branches:
        - master
  • Leave the definition of the job and run environment

    jobs:
      build:
        runs-on: ubuntu-latest
  • Define prep-steps

    steps:
      - uses: actions/checkout@v2
      
      - name: Setup Node
        uses: actions/setup-node@v1
        with:
          node-version: '10.x'
      
      - run: npm ci
      
      - run: npm run build

Then you need to commit your main.yml by pressing Start commit button.


Clone this wiki locally