Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 99bcd22

Browse files
authored
chore: add release please (#530)
* chore: add release please * chore: update CONTRIBUTING.md * chore: use a specific secret
1 parent a4bc88a commit 99bcd22

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

.github/workflows/release-please.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: release-please
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: GoogleCloudPlatform/release-please-action@v2
11+
with:
12+
# We can't rely on the GITHUB_TOKEN as we need to trigger
13+
# further actions and the GITHUB_TOKEN doesn't allow it
14+
token: ${{ secrets.NODE_PKG_RELEASE_TOKEN }}
15+
release-type: node
16+
package-name: "@netlify/build-image"

CONTRIBUTING.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ please read the [code of conduct](CODE_OF_CONDUCT.md).
55

66
## Releasing
77

8-
1. `npm version major`, `npm version minor`, `npm version patch` or `npm version prerelease`: generate changelog, bump version, version commit + tag.
9-
2. `npm run release`: push version commit + tag, push latest CHANGELOG entry to GitHub release page.
10-
3. Wait for Jenkins build to finish
11-
4. Create a PR in the [buildbot](https://github.com/netlify/buildbot) to bump [the version](https://github.com/netlify/buildbot/blob/a247edab7ead955cc27bb70ecc9f081e68f1aea6/script/docker-build.sh#L17) of the `build-image`.
8+
1. Merge the relevant package release PR created by `release-please`
9+
2. Wait for the Jenkins build to finish
10+
3. Create a PR in the [buildbot](https://github.com/netlify/buildbot) to bump [the version](https://github.com/netlify/buildbot/blob/a247edab7ead955cc27bb70ecc9f081e68f1aea6/script/docker-build.sh#L17) of the `build-image`.
1211

1312
## License
1413

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
"version": "3.6.1",
44
"description": "This repository contains the tools to make the build image Netlify uses to build a site from git (for continuous deployment.)",
55
"main": "index.js",
6+
"private": "true",
67
"scripts": {
7-
"version": "auto-changelog -p -t keepachangelog -l false --starting-commit 9d2e26a && git add CHANGELOG.md",
8-
"release": "git push && git push --tags && gh-release"
98
},
109
"repository": {
1110
"type": "git",
@@ -18,7 +17,5 @@
1817
},
1918
"homepage": "https://github.com/netlify/build-image#readme",
2019
"devDependencies": {
21-
"auto-changelog": "^1.10.2",
22-
"gh-release": "^3.4.0"
2320
}
2421
}

0 commit comments

Comments
 (0)