diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 3a44414..f8b3bcf 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -2,22 +2,22 @@ name: Dependabot auto-merge on: pull_request permissions: - contents: write - pull-requests: write + contents: write + pull-requests: write jobs: - dependabot: - runs-on: ubuntu-latest - if: ${{ github.actor == 'dependabot[bot]' }} - steps: - - name: Dependabot metadata - id: metadata - uses: dependabot/fetch-metadata@v1 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" - - name: Enable auto-merge for Dependabot PRs - if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'}} - run: gh pr merge --auto --squash "$PR_URL" - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@v1 + with: + github-token: '${{ secrets.GITHUB_TOKEN }}' + - name: Enable auto-merge for Dependabot PRs + if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'}} + run: gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..c6a6cfd --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +dist/ +__recordings__/ \ No newline at end of file diff --git a/package.json b/package.json index a97f9ba..9d3cac2 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,8 @@ "test:cov": "dts test --runInBand --coverage", "test:watch": "dts test --runInBand --watchAll --coverage", "test:ci": "dts test --runInBand --ci --coverage", - "lint": "dts lint src test", - "lint:fix": "dts lint src test --fix", + "lint": "prettier --check .", + "format": "prettier --write .", "prepare": "husky install && dts build --target node", "pre-push": "yarn && yarn lint && yarn build && yarn test:cov", "release": "np"