diff --git a/.github/workflows/comment-on-forks.yml b/.github/workflows/comment-on-forks.yml index 1ef515c9..f283ff53 100644 --- a/.github/workflows/comment-on-forks.yml +++ b/.github/workflows/comment-on-forks.yml @@ -22,7 +22,7 @@ jobs: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - name: covector status - uses: jbolda/covector/packages/action@covector-v0 + uses: fltsci/covector/packages/action@main # note that this check could be shifted to the job, but for future reference, we are dumping the full github context if: github.event.workflow_run.conclusion == 'success' && (github.event.workflow_run.head_repository.full_name != github.repository || github.actor == 'dependabot[bot]') diff --git a/.github/workflows/run-on-pr.yml b/.github/workflows/run-on-pr.yml index a3b43de1..e3b04267 100644 --- a/.github/workflows/run-on-pr.yml +++ b/.github/workflows/run-on-pr.yml @@ -4,12 +4,14 @@ on: pull_request jobs: status: runs-on: ubuntu-latest + permissions: + pull-requests: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 - - uses: volta-cli/action@v4 + - uses: volta-cli/action@v5 - run: npm ci --ignore-scripts - run: npm run build - run: npm run pkg -w action @@ -35,10 +37,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 - - uses: volta-cli/action@v4 + - uses: volta-cli/action@v5 - run: npm ci --ignore-scripts - run: npm run build - run: npm run -ws --if-present prepublishOnly diff --git a/.github/workflows/run-version-or-publish.yml b/.github/workflows/run-version-or-publish.yml index b8ff0f8a..7346c341 100644 --- a/.github/workflows/run-version-or-publish.yml +++ b/.github/workflows/run-version-or-publish.yml @@ -18,11 +18,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 - - uses: volta-cli/action@v4 - - uses: actions/setup-node@v3 + - uses: volta-cli/action@v5 + - uses: actions/setup-node@v6 with: registry-url: "https://registry.npmjs.org" - name: git config @@ -57,7 +57,7 @@ jobs: dryRun: true - name: create pull request id: cpr - uses: peter-evans/create-pull-request@v6 + uses: peter-evans/create-pull-request@v8 if: steps.covector.outputs.commandRan == 'version' with: title: "Publish New Versions" @@ -65,3 +65,4 @@ jobs: labels: "version updates, preview" branch: "release" body: ${{ steps.covector.outputs.change }} + delete-branch: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 36938d39..0fe6b4b5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,11 +14,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: # some of the tests use the covector git history to run fetch-depth: 0 - - uses: volta-cli/action@v4 + - uses: volta-cli/action@v5 - run: npm ci - run: npm run build # covector CLI tests run built files - run: npm test diff --git a/packages/action/action.yml b/packages/action/action.yml index bfa1c9bd..463c3175 100644 --- a/packages/action/action.yml +++ b/packages/action/action.yml @@ -15,15 +15,15 @@ inputs: dryRun: description: Run in dry-run mode which skips executing steps, and instead logs. Useful for testing a publish beforehand. required: false - defaults: false + default: "false" createRelease: description: Opt-in to create a release on publish required: false - default: false + default: "false" draftRelease: description: When creating a release, set it as a draft. required: false - default: false + default: "false" filterPackages: description: A comma separated list (no spaces) of packages to run commands on rather than everything listed in the config. required: false @@ -31,11 +31,11 @@ inputs: comment: description: Include a comment on the pull request including context around the comment run required: false - defaults: false + default: "false" recognizeContributors: description: Include contributor and reviewer names within changelog required: false - defaults: false + default: "false" label: description: "the Github pull request label that triggers preview packages" required: false @@ -70,7 +70,7 @@ outputs: releaseId: description: The ID of the created release. Only present when `createRelease` is set to true. runs: - using: "node20" + using: "node24" main: "dist/index.js" branding: icon: "sliders" diff --git a/packages/covector/src/init.ts b/packages/covector/src/init.ts index b4069715..46319a8c 100644 --- a/packages/covector/src/init.ts +++ b/packages/covector/src/init.ts @@ -391,7 +391,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 # required for use of git history - name: covector status @@ -436,12 +436,12 @@ jobs: successfulPublish: \${{ steps.covector.outputs.successfulPublish }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 # required for use of git history${ pkgManagers.javascript ? ` - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v6 with: registry-url: 'https://registry.npmjs.org'` : ""