Skip to content

Commit

Permalink
chore: add npmrc + use npm in lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Apr 13, 2021
1 parent 012b2b6 commit 821cb40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/CI.yml
Expand Up @@ -46,19 +46,14 @@ jobs:
name: Commit lint ✨
uses: wagoid/commitlint-github-action@v2

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: latest

- name: Install dependencies
run: pnpm install
run: npm install --ignore-scripts

- name: Format ✨
run: pnpm test.format
run: npm run test.format

# - name: Lint ✨
# run: pnpm test.lint
- name: Lint ✨
run: npm run test.lint

Skip:
if: contains(github.event.head_commit.message, '[skip ci]')

This comment has been minimized.

Copy link
@Gasteiz83

Gasteiz83 Jul 23, 2021

his is a basic workflow to help you get started with Actions

name: CI

Controls when the workflow will run

on:

Triggers the workflow on push or pull request events but only for the main branch

push:
branches: [ main ]
pull_request:
branches: [ main ]

Allows you to run this workflow manually from the Actions tab

workflow_dispatch:

A workflow run is made up of one or more jobs that can run sequentially or in parallel

jobs:

This workflow contains a single job called "build"

build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
  # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  - uses: actions/checkout@v2

  # Runs a single command using the runners shell
  - name: Run a one-line script
    run: echo Hello, world!

  # Runs a set of commands using the runners shell
  - name: Run a multi-line script
    run: |
      echo Add other actions to build,
      echo test, and deploy your project.
Expand Down
4 changes: 4 additions & 0 deletions .npmrc
@@ -0,0 +1,4 @@
public-hoist-pattern[]=*
package-lock=false
lockfile=true
prefer-frozen-lockfile=false

0 comments on commit 821cb40

Please sign in to comment.