diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 28e68503b2..ced847c1bc 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -4,7 +4,7 @@ description: 'Installs node, driver dependencies, and builds source' runs: using: composite steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 'lts/*' cache: 'npm' diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 99ac28823e..de47ba9028 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -18,14 +18,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: actions/setup uses: ./.github/actions/setup - run: sudo apt-get install hugo - name: Build Docs run: npm run build:docs -- --yes - name: Open Pull Request - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v6 with: title: 'docs: generate docs from latest main [skip-ci]' delete-branch: true diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index 75284c359c..eab5170f25 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -13,7 +13,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: actions/setup uses: ./.github/actions/setup - run: npm run check:dependencies diff --git a/.github/workflows/release-4.x.yml b/.github/workflows/release-4.x.yml deleted file mode 100644 index dcda4e2d82..0000000000 --- a/.github/workflows/release-4.x.yml +++ /dev/null @@ -1,38 +0,0 @@ -on: - push: - branches: [4.x] - workflow_dispatch: {} - -permissions: - contents: write - pull-requests: write - id-token: write - -name: release-4x - -jobs: - release-please: - runs-on: ubuntu-latest - steps: - - id: release - uses: google-github-actions/release-please-action@v3 - with: - release-type: node - package-name: mongodb - # Example: chore(main): release 5.7.0 [skip-ci] - # ${scope} - parenthesis included, base branch name - pull-request-title-pattern: 'chore${scope}: release ${version} [skip-ci]' - pull-request-header: 'Please run the release_notes action before releasing to generate release highlights' - changelog-path: HISTORY.md - default-branch: 4.x - - # If release-please created a release, publish to npm - - if: ${{ steps.release.outputs.release_created }} - uses: actions/checkout@v3 - - if: ${{ steps.release.outputs.release_created }} - name: actions/setup - uses: ./.github/actions/setup - - if: ${{ steps.release.outputs.release_created }} - run: npm publish --provenance --tag=4x - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release-5.x.yml b/.github/workflows/release-5.x.yml index f909eefc7d..d0958648b1 100644 --- a/.github/workflows/release-5.x.yml +++ b/.github/workflows/release-5.x.yml @@ -15,20 +15,13 @@ jobs: runs-on: ubuntu-latest steps: - id: release - uses: google-github-actions/release-please-action@v3 + uses: google-github-actions/release-please-action@v4 with: - release-type: node - package-name: mongodb - # Example: chore(main): release 5.7.0 [skip-ci] - # ${scope} - parenthesis included, base branch name - pull-request-title-pattern: 'chore${scope}: release ${version} [skip-ci]' - pull-request-header: 'Please run the release_notes action before releasing to generate release highlights' - changelog-path: HISTORY.md - default-branch: 5.x + target-branch: 5.x # If release-please created a release, publish to npm - if: ${{ steps.release.outputs.release_created }} - uses: actions/checkout@v3 + uses: actions/checkout@v4 - if: ${{ steps.release.outputs.release_created }} name: actions/setup uses: ./.github/actions/setup diff --git a/.github/workflows/release-alpha.yml b/.github/workflows/release-alpha.yml index e9662ce67d..e3b024ccd5 100644 --- a/.github/workflows/release-alpha.yml +++ b/.github/workflows/release-alpha.yml @@ -25,7 +25,7 @@ jobs: echo "Invalid alphaVersion string" exit 1 fi - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: actions/setup uses: ./.github/actions/setup - run: npm version "${{ inputs.alphaVersion }}" --git-tag-version=false diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index f152011932..649b6c760a 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -19,7 +19,7 @@ jobs: release-nightly: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: actions/setup uses: ./.github/actions/setup - id: build_nightly diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7cc1ca92af..b58b4a4419 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,20 +15,11 @@ jobs: runs-on: ubuntu-latest steps: - id: release - uses: google-github-actions/release-please-action@v3 - with: - release-type: node - package-name: mongodb - # Example: chore(main): release 5.7.0 [skip-ci] - # ${scope} - parenthesis included, base branch name - pull-request-title-pattern: 'chore${scope}: release ${version} [skip-ci]' - pull-request-header: 'Please run the release_notes action before releasing to generate release highlights' - changelog-path: HISTORY.md - default-branch: main + uses: google-github-actions/release-please-action@v4 # If release-please created a release, publish to npm - if: ${{ steps.release.outputs.release_created }} - uses: actions/checkout@v3 + uses: actions/checkout@v4 - if: ${{ steps.release.outputs.release_created }} name: actions/setup uses: ./.github/actions/setup diff --git a/.github/workflows/release_notes.yml b/.github/workflows/release_notes.yml index 5e43c342f9..3293db7ef3 100644 --- a/.github/workflows/release_notes.yml +++ b/.github/workflows/release_notes.yml @@ -39,7 +39,7 @@ jobs: fi # checkout the HEAD ref from prNumber - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: refs/pull/${{ github.event_name == 'issue_comment' && github.event.issue.number || inputs.releasePr }}/head diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000000..91cb134cbb --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "6.6.1" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000000..2655c66b86 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "pull-request-title-pattern": "chore${scope}: release ${version} [skip-ci]", + "pull-request-header": "Please run the release_notes action before releasing to generate release highlights", + "packages": { + ".": { + "include-component-in-tag": false, + "changelog-path": "HISTORY.md", + "release-type": "node", + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "draft": false, + "prerelease": false + } + } +}