Skip to content

Commit

Permalink
[#123] Improve github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rosle committed Sep 8, 2022
1 parent ed1bccc commit e113b53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions packages/cra-template/template/.github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy to Netlify

on:
push:
branches: ['main', 'master']
branches: ['main']
workflow_dispatch:
inputs:
deploy-msg:
Expand All @@ -12,14 +12,15 @@ on:
jobs:
deploy:
name: Build and Deploy to Netlify
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

- name: Install modules
run: npm ci
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ on: [pull_request, workflow_dispatch]
jobs:
deploy-preview:
name: Build and Deploy preview on Netlify
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

- name: Install modules
run: npm ci
Expand Down

0 comments on commit e113b53

Please sign in to comment.