Skip to content

Commit

Permalink
Merge pull request #23 from geoql/fix/failing-ci-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni authored Jul 15, 2021
2 parents e5461b4 + 784b52e commit 7f718dc
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,37 @@ on:
branches:
- main
- next
pull_request_target:
branches:
- main
- next

permissions:
checks: write
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
ci:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: [16]

steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@master
- name: Check out repository ✨
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
uses: actions/checkout@v2

- name: Check out repository πŸŽ‰ (dependabot)
if: ${{ github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]' }}
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand All @@ -32,23 +50,11 @@ jobs:
check-latest: true
registry-url: https://registry.npmjs.org
scope: '@geoql'
cache: 'npm'

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

- name: Get npm cache directory πŸ—
id: npm-cache
run: echo "::set-output name=dir::$(npm config get cache)"

- name: Restore cached node_modules πŸ€·β€β™‚οΈ
uses: actions/[email protected]
with:
path: |
${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies πŸš€
run: npm ci --prefer-offline --no-audit --no-optional

Expand All @@ -60,13 +66,13 @@ jobs:
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
eslint: true
eslint_extensions: js,ts,vue
prettier: true
prettier_extensions: js,ts,vue
neutral_check_on_warning: true

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

0 comments on commit 7f718dc

Please sign in to comment.