diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f3d3bc..d1b0fd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,10 +16,5 @@ jobs: github.event_name == 'push' && github.ref_name == github.event.repository.default_branch needs: test-and-build - permissions: - contents: write - issues: write - pull-requests: write - id-token: write uses: imccausl/eslint-config/.github/workflows/publish.yml@main secrets: inherit diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ea1793b..65c9693 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,6 +5,7 @@ on: jobs: publish: + name: Publish runs-on: ubuntu-latest permissions: contents: write @@ -14,8 +15,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - with: - fetch-depth: 0 - name: Prepare Env uses: ./.github/actions/prepare-env @@ -25,7 +24,7 @@ jobs: uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 with: path: lib - key: ${{ runner.os }}-lib-${{ hashFiles('**/yarn.lock', '**/package.json', '**/src/**/*') }} + key: lib-${{ hashFiles('**/yarn.lock', '**/package.json', '**/src/**/*') }} - name: Build if not cached if: steps.restore-cache.outputs.cache-hit != 'true' @@ -37,3 +36,4 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml index 9ab810d..91ad0c0 100644 --- a/.github/workflows/test-and-build.yml +++ b/.github/workflows/test-and-build.yml @@ -5,6 +5,7 @@ on: jobs: lint: + name: Lint runs-on: ubuntu-latest steps: @@ -20,6 +21,7 @@ jobs: run: yarn lint typecheck: + name: Typecheck runs-on: ubuntu-latest steps: @@ -35,6 +37,7 @@ jobs: run: yarn typecheck build: + name: Build needs: [lint, typecheck] runs-on: ubuntu-latest @@ -51,7 +54,7 @@ jobs: uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 with: path: lib - key: ${{ runner.os }}-lib-${{ hashFiles('**/yarn.lock', '**/package.json', '**/src/**/*') }} + key: lib-${{ hashFiles('**/yarn.lock', '**/package.json', '**/src/**/*') }} - name: Build run: | diff --git a/.releaserc b/.releaserc index 3012f7d..314f272 100644 --- a/.releaserc +++ b/.releaserc @@ -10,7 +10,8 @@ { "assets": [ "CHANGELOG.md" - ] + ], + "message": "chore(release): [skip ci] update changelog" } ] ],