Skip to content

Commit

Permalink
chore: rename master to main, fix eslint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
webketje committed Aug 5, 2022
1 parent e59ad64 commit 342b5e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches: ['**']
pull_request:
branches: ['master']
branches: ['main']

jobs:
pre-test:
Expand All @@ -19,7 +19,7 @@ jobs:
- run: npm run lint:check

branch-test:
if: github.ref_name != 'master' && success()
if: github.ref_name != 'main' && success()
needs: pre-test
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -37,7 +37,7 @@ jobs:
- run: npm test

test:
if: github.ref_name == 'master' && success()
if: github.ref_name == 'main' && success()
needs: pre-test
runs-on: ${{ matrix.os }}
strategy:
Expand Down
2 changes: 1 addition & 1 deletion test/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const equal = require('assert-dir-equal')
const Metalsmith = require('metalsmith')

/* eslint-disable-next-line node/no-missing-require */
/* eslint-disable-next-line */
const drafts = require('../lib/index.cjs')

describe('@metalsmith/drafts', function () {
Expand Down

0 comments on commit 342b5e6

Please sign in to comment.