Skip to content

Commit

Permalink
Merge pull request #383 from MH4GF/maintenance
Browse files Browse the repository at this point in the history
maintenance
  • Loading branch information
MH4GF authored Jan 6, 2025
2 parents 88b7c46 + 5457ddb commit a66e492
Show file tree
Hide file tree
Showing 8 changed files with 348 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
- main

jobs:
build:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: MH4GF/shared-config/.github/composite-actions/setup-pnpm@main
- run: pnpm run all
15 changes: 0 additions & 15 deletions .github/workflows/keep-main-version-branch.yml

This file was deleted.

23 changes: 22 additions & 1 deletion .github/workflows/tagpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,26 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: Songmu/tagpr@3dca11e7c0d68637ee212ddd35acc3d30a7403a4 # v1.5.0
id: run-tagpr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.MH4GF_PAT }}
outputs:
tagpr-tag: ${{ steps.run-tagpr.outputs.tag }}

bump_major_branch:
if: needs.tagpr.outputs.tagpr-tag != ''
needs: tagpr
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Git config
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Get major version
run: echo "MAJOR_VERSION=$(echo ${{ needs.tagpr.outputs.tagpr-tag }} | cut -d '.' -f 1)" >> "$GITHUB_ENV"
- name: Push new tag
run: git push --force origin "HEAD:refs/heads/${MAJOR_VERSION}"
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./
with:
package-manager: pnpm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.MH4GF_PAT }}
Expand Down
4 changes: 4 additions & 0 deletions knip.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"entry": ["src/main.ts", ".dependency-cruiser.js"],
"ignore": ["dist/**", "test/**"]
}
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@
"url": "git+https://github.com/MH4GF/dependency-cruiser-report-action.git"
},
"license": "MIT",
"author": "",
"author": {
"name": "Hirotaka Miyagi",
"email": "[email protected]"
},
"main": "lib/main.js",
"scripts": {
"all": "npm run build && npm run lint && npm test",
"build": "tsc",
"coverage": "vitest run --coverage",
"format": "biome check --apply-unsafe .",
"lint": "pnpm run lint:biome & pnpm run lint:depcruise",
"all": "pnpm run lint && pnpm run test",
"fmt": "biome check --write --unsafe .",
"lint": "pnpm run '/^lint:.*/'",
"lint:biome": "biome ci .",
"lint:depcruise": "depcruise src --config",
"lint:knip": "knip",
"lint:tsc": "tsc --noEmit",
"package": "ncc build src/main.ts --source-map --license licenses.txt",
"test": "vitest"
},
Expand All @@ -34,7 +37,7 @@
"@types/node": "22.10.5",
"@vercel/ncc": "0.38.3",
"dependency-cruiser": "16.8.0",
"js-yaml": "4.1.0",
"knip": "5.41.1",
"typescript": "5.7.2",
"vitest": "2.1.8"
},
Expand Down
Loading

0 comments on commit a66e492

Please sign in to comment.