Skip to content

Commit b985d27

Browse files
committed
fix: switch branches and cleanup package.json
1 parent 686d251 commit b985d27

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/release-please.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ name: release-please
22
on:
33
push:
44
branches:
5-
- test/release-flow
5+
- master
66
jobs:
77
release-please:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: GoogleCloudPlatform/release-please-action@v2
1111
id: release
1212
with:
13-
token: ${{ secrets.GITHUB_TOKEN }}
13+
# We can't rely on the GITHUB_TOKEN as we need to trigger
14+
# further actions and the GITHUB_TOKEN doesn't allow it
15+
token: ${{ secrets.NODE_PKG_RELEASE_TOKEN }}
1416
release-type: node
1517
package-name: '@netlify/open-api'
16-
if: ${{ !steps.release.outputs.release_created }}

.github/workflows/swagger-bump.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: swagger-bump
22
on:
3+
# Workaround for bumping the swagger.yml file on release-please PRs
34
push:
45
branches:
56
- release-*
@@ -16,4 +17,4 @@ jobs:
1617
- run: npm version:1-swagger
1718
- uses: stefanzweifel/git-auto-commit-action@v4
1819
with:
19-
commit_message: "Bump swagger.yml file"
20+
commit_message: "chore: bump swagger.yml file"

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"devDependencies": {
1818
"analytics": "^0.2.0",
1919
"analytics-plugin-ga": "^0.1.5",
20-
"auto-changelog": "^1.16.1",
2120
"ava": "^2.4.0",
2221
"cp-file": "^7.0.0",
2322
"eslint": "^6.3.0",
@@ -58,8 +57,7 @@
5857
"convert": "node src/convert.js",
5958
"version": "run-s version:*",
6059
"version:1-swagger": "node src/bump-swagger.js",
61-
"version:2-changelog": "auto-changelog -p --template keepachangelog --breaking-pattern breaking",
62-
"version:3-git": "git add CHANGELOG.md swagger.yml",
60+
"version:2-git": "git add swagger.yml",
6361
"redoc": "node src/docs/build.js",
6462
"lint": "run-s eslint prettier",
6563
"eslint": "eslint --fix \"src/**/*.js\"",

0 commit comments

Comments
 (0)