From 5b2a5537baafc5a47f3422ce9e951d288962cb72 Mon Sep 17 00:00:00 2001 From: Ananthu Kanive Date: Thu, 14 May 2020 20:05:18 +0530 Subject: [PATCH] add lint action on push --- .github/workflows/lint.yml | 12 ++++++++++++ .github/workflows/npmpublish.yml | 12 +----------- 2 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..02fb982 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,12 @@ +name: Lint + +on: [push] + +jobs: + eslint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: hallee/eslint-action@master + with: + repo-token: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 37c37c9..8027e27 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -7,17 +7,7 @@ on: release: types: [created] -jobs: - eslint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: hallee/eslint-action@master - with: - repo-token: ${{secrets.GITHUB_TOKEN}} - publish-npm: - needs: eslint runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -25,7 +15,7 @@ jobs: with: node-version: 12 registry-url: https://registry.npmjs.org/ - - run: npm ci + - run: yarn install --frozen-lockfile - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}}