Skip to content

Commit

Permalink
fix: update CI workflow to ensure
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni committed Aug 16, 2021
1 parent 762dfcc commit ed514ff
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
branches:
- main
- next
pull_request:
branches:
- main
- next
pull_request_target:
branches:
- main
Expand All @@ -33,12 +29,12 @@ jobs:
node: [16]

steps:
- name: Check out repository ✨
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' }}
- name: Check out repository ✨ (push)
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request_target' || github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' }}
uses: actions/checkout@v2

- name: Check out repository πŸŽ‰ (dependabot)
if: ${{ github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]' }}
- name: Check out repository πŸŽ‰ (pull_request_target)
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
Expand All @@ -52,8 +48,8 @@ jobs:
scope: '@geoql'
cache: 'npm'

- name: Upgrade npm πŸŽ‰
run: npm install -g npm@latest
- name: Upgrade npm ✨
run: npm i -g npm@latest

- name: Install dependencies πŸš€
run: npm ci --prefer-offline --no-audit --no-optional
Expand All @@ -63,16 +59,16 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
continue_on_error: false
neutral_check_on_warning: true
auto_fix: false
git_name: github-actions[bot]
git_email: github-actions[bot]@users.noreply.github.com
auto_fix: false
neutral_check_on_warning: true
stylelint: true
stylelint_extensions: css,scss,vue
stylelint_extensions: css,sass,scss,vue
eslint: true
eslint_extensions: js,ts,vue
prettier: true
prettier_extensions: js,ts,vue

- name: Build the package πŸŽ‰
- name: Check build πŸŽ‰
run: npm run build

0 comments on commit ed514ff

Please sign in to comment.