Skip to content

Change unicorn to highest version that supports ESLint 8 #84

Change unicorn to highest version that supports ESLint 8

Change unicorn to highest version that supports ESLint 8 #84

Workflow file for this run

name: main
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restore cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run tests
run: yarn test
publish:
name: Publish
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
needs:
- test
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restore cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Publish on NPM.
run: |
yarn install
yarn semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISHING_TOKEN }}
- name: Setup for Github Package Registry
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@comicrelief'