Skip to content

Commit f0c86ab

Browse files
authored
chore(NODE-6034): update github actions (#682)
1 parent 8bbf086 commit f0c86ab

File tree

7 files changed

+27
-24
lines changed

7 files changed

+27
-24
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: 'Installs node, driver dependencies, and builds source'
44
runs:
55
using: composite
66
steps:
7-
- uses: actions/setup-node@v3
7+
- uses: actions/setup-node@v4
88
with:
99
node-version: 'lts/*'
1010
cache: 'npm'

.github/workflows/release-5.x.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,13 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- id: release
18-
uses: google-github-actions/release-please-action@v3
18+
uses: google-github-actions/release-please-action@v4
1919
with:
20-
release-type: node
21-
package-name: bson
22-
# Example: chore(main): release 5.7.0 [skip-ci]
23-
# ${scope} - parenthesis included, base branch name
24-
pull-request-title-pattern: 'chore${scope}: release ${version} [skip-ci]'
25-
pull-request-header: 'Please run the release_notes action before releasing to generate release highlights'
26-
changelog-path: HISTORY.md
27-
default-branch: 5.x
20+
target-branch: 5.x
2821

2922
# If release-please created a release, publish to npm
3023
- if: ${{ steps.release.outputs.release_created }}
31-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
3225
- if: ${{ steps.release.outputs.release_created }}
3326
name: actions/setup
3427
uses: ./.github/actions/setup

.github/workflows/release-alpha.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
echo "Invalid alphaVersion string"
2626
exit 1
2727
fi
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929
- name: actions/setup
3030
uses: ./.github/actions/setup
3131
- run: npm version "${{ inputs.alphaVersion }}" --git-tag-version=false

.github/workflows/release.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- id: release
18-
uses: google-github-actions/release-please-action@v3
19-
with:
20-
release-type: node
21-
package-name: bson
22-
# Example: chore(main): release 5.7.0 [skip-ci]
23-
# ${scope} - parenthesis included, base branch name
24-
pull-request-title-pattern: 'chore${scope}: release ${version} [skip-ci]'
25-
pull-request-header: 'Please run the release_notes action before releasing to generate release highlights'
26-
changelog-path: HISTORY.md
27-
default-branch: main
18+
uses: google-github-actions/release-please-action@v4
2819

2920
# If release-please created a release, publish to npm
3021
- if: ${{ steps.release.outputs.release_created }}
31-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
3223
- if: ${{ steps.release.outputs.release_created }}
3324
name: actions/setup
3425
uses: ./.github/actions/setup

.github/workflows/release_notes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
fi
4040
4141
# checkout the HEAD ref from prNumber
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4343
with:
4444
ref: refs/pull/${{ github.event_name == 'issue_comment' && github.event.issue.number || inputs.releasePr }}/head
4545

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "6.0.1"
3+
}

release-please-config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"pull-request-title-pattern": "chore${scope}: release ${version} [skip-ci]",
4+
"pull-request-header": "Please run the release_notes action before releasing to generate release highlights",
5+
"packages": {
6+
".": {
7+
"include-component-in-tag": false,
8+
"changelog-path": "HISTORY.md",
9+
"release-type": "node",
10+
"bump-minor-pre-major": false,
11+
"bump-patch-for-minor-pre-major": false,
12+
"draft": false,
13+
"prerelease": false
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)