From 7cc551187b137acb48f019b61566a74509339647 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Thu, 7 Sep 2023 09:26:12 +0200 Subject: [PATCH] build: tweaks --- .github/workflows/main.yml | 6 +++--- package.json | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2d8d848..5c49a38 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,8 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 2 - name: Setup Node.js uses: actions/setup-node@v3 with: @@ -27,12 +28,11 @@ jobs: - name: Report run: mkdir -p coverage && npx c8 report --reporter=text-lcov > coverage/lcov.info - name: Coverage - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@main with: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Release if: ${{ github.ref == 'refs/heads/master' && !startsWith(github.event.head_commit.message, 'chore(release):') && !startsWith(github.event.head_commit.message, 'docs:') }} - shell: 'script -q -e -c "bash {0}" > /dev/null' env: CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index e1c43fa..ae4c96c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "beauty-error", "description": "Getting a beauty error. Oriented for well printed errors. Be beauty, no ugly.", - "homepage": "https://nicedoc.io/Kikobeats/beauty-error", + "homepage": "https://github.com/Kikobeats/beauty-error", "version": "1.2.15", "main": "index.js", "author": { @@ -32,6 +32,7 @@ "devDependencies": { "@commitlint/cli": "latest", "@commitlint/config-conventional": "latest", + "@ksmithut/prettier-standard": "latest", "ava": "latest", "c8": "latest", "ci-publish": "latest", @@ -40,7 +41,6 @@ "git-authors-cli": "latest", "nano-staged": "latest", "npm-check-updates": "latest", - "prettier-standard": "latest", "simple-git-hooks": "latest", "standard": "latest", "standard-markdown": "latest", @@ -54,7 +54,7 @@ ], "scripts": { "clean": "rm -rf node_modules", - "contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true", + "contributors": "(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true", "coverage": "nyc report --reporter=text-lcov | coveralls", "lint": "standard-markdown README.md && standard", "postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)", @@ -76,7 +76,8 @@ }, "nano-staged": { "*.js,!*.min.js,": [ - "prettier-standard" + "prettier-standard", + "standard --fix" ], "*.md": [ "standard-markdown"