diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77c1cb8..8e5493b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: CI: "true" steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} @@ -24,7 +24,7 @@ jobs: with: version: "8" - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18.16.1 - name: Install dependencies @@ -38,10 +38,11 @@ jobs: git diff --staged --patch --exit-code > .repo.patch || echo "self_mutation_happened=true" >> $GITHUB_OUTPUT - name: Upload patch if: steps.self_mutation.outputs.self_mutation_happened - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: .repo.patch path: .repo.patch + overwrite: true - name: Fail build on mutation if: steps.self_mutation.outputs.self_mutation_happened run: |- @@ -57,18 +58,18 @@ jobs: steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c + uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a with: app_id: ${{ secrets.PROJEN_APP_ID }} private_key: ${{ secrets.PROJEN_APP_PRIVATE_KEY }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ steps.generate_token.outputs.token }} ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Download patch - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: .repo.patch path: ${{ runner.temp }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fdcb99f..c844e74 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: CI: "true" steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set git identity @@ -30,7 +30,7 @@ jobs: with: version: "8" - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18.16.1 - name: Install dependencies @@ -54,10 +54,11 @@ jobs: continue-on-error: true - name: Upload artifact if: ${{ steps.git_remote.outputs.latest_commit == github.sha }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build-artifact path: dist + overwrite: true release_github: name: Publish to GitHub Releases needs: release @@ -66,11 +67,11 @@ jobs: contents: write if: needs.release.outputs.tag_exists != 'true' && needs.release.outputs.latest_commit == github.sha steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18.16.1 - name: Download build artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-artifact path: dist @@ -91,11 +92,11 @@ jobs: contents: read if: needs.release.outputs.tag_exists != 'true' && needs.release.outputs.latest_commit == github.sha steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18.16.1 - name: Download build artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-artifact path: dist diff --git a/.github/workflows/upgrade-main.yml b/.github/workflows/upgrade-main.yml index edf5bfa..c5cae00 100644 --- a/.github/workflows/upgrade-main.yml +++ b/.github/workflows/upgrade-main.yml @@ -15,7 +15,7 @@ jobs: patch_created: ${{ steps.create_patch.outputs.patch_created }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: main - name: Setup pnpm @@ -23,7 +23,7 @@ jobs: with: version: "8" - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 18.16.1 - name: Install dependencies @@ -37,10 +37,11 @@ jobs: git diff --staged --patch --exit-code > .repo.patch || echo "patch_created=true" >> $GITHUB_OUTPUT - name: Upload patch if: steps.create_patch.outputs.patch_created - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: .repo.patch path: .repo.patch + overwrite: true pr: name: Create Pull Request needs: upgrade @@ -51,16 +52,16 @@ jobs: steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c + uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a with: app_id: ${{ secrets.PROJEN_APP_ID }} private_key: ${{ secrets.PROJEN_APP_PRIVATE_KEY }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: main - name: Download patch - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: .repo.patch path: ${{ runner.temp }} diff --git a/.projen/tasks.json b/.projen/tasks.json index 3c7dcae..d4fb8f5 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -221,7 +221,7 @@ }, "steps": [ { - "exec": "pnpx npm-check-updates@16 --upgrade --target=minor --peer --dep=dev,peer,prod,optional --filter=@types/eslint,@types/estree,@types/node,@typescript-eslint/eslint-plugin,@typescript-eslint/parser,@vitest/coverage-v8,constructs,esbuild,eslint-config-prettier,eslint-import-resolver-typescript,eslint-plugin-import,eslint-plugin-prettier,eslint,prettier,projen,standard-version,typescript,vitest" + "exec": "pnpx npm-check-updates@16 --upgrade --target=minor --peer --dep=dev,peer,prod,optional --filter=@types/eslint,@types/estree,@vitest/coverage-v8,esbuild,eslint-config-prettier,eslint-import-resolver-typescript,eslint-plugin-import,eslint-plugin-prettier,prettier,projen,typescript,vitest,eslint" }, { "exec": "pnpm i --no-frozen-lockfile" diff --git a/package.json b/package.json index cf18411..668e751 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "eslint-plugin-import": "^2.29.1", "eslint-plugin-prettier": "^5.1.3", "prettier": "^3.2.5", - "projen": "^0.79.9", + "projen": "^0.79.15", "standard-version": "^9", "typescript": "^5.3.3", "vitest": "^0.34.6" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 38e184f..89777b7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -51,8 +51,8 @@ importers: specifier: ^3.2.5 version: 3.2.5 projen: - specifier: ^0.79.9 - version: 0.79.9(constructs@10.3.0) + specifier: ^0.79.15 + version: 0.79.15(constructs@10.3.0) standard-version: specifier: ^9 version: 9.5.0 @@ -3260,8 +3260,8 @@ packages: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} dev: true - /projen@0.79.9(constructs@10.3.0): - resolution: {integrity: sha512-W0SBkRHLORWzvgkzlZHQgArTBpeMrZklP3g9U8EpflAAeG1hLNUFHPkneODz8a1EDPt63FDnLkAsXXJOsPiP2A==} + /projen@0.79.15(constructs@10.3.0): + resolution: {integrity: sha512-0B6w91QIDoHbva3yM4GZVPnurPCMeiZmB8b67wlrMmssfEHzOr4iK974iriv+B8/TTwD1aq6rgc4Wi7zKWm6HA==} engines: {node: '>= 16.0.0'} hasBin: true peerDependencies: