Skip to content

Commit 48b5fb6

Browse files
authored
ci: add token to release-please action (#1486)
<!-- πŸ‘‹ Hi, thanks for sending a PR to eslint-plugin-package-json! πŸ—‚ Please fill out all fields below and make sure each item is true and [x] checked. Otherwise we may not be able to review your PR. --> ## PR Checklist - [ ] Addresses an existing open issue: fixes #000 - [ ] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/main/.github/CONTRIBUTING.md) were taken ## Overview This change adds the same `ACCESS_TOKEN` that we're using for the Contributors workflow to the release-please action, so that downstream workflows will kick off properly.
1 parent 8c72ede commit 48b5fb6

File tree

5 files changed

+40
-38
lines changed

5 files changed

+40
-38
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
name: Contributors
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
18
jobs:
29
contributors:
310
runs-on: ubuntu-latest
@@ -9,10 +16,3 @@ jobs:
916
- env:
1017
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
1118
uses: JoshuaKGoldberg/all-contributors-auto-action@944abe4387e751b5bbb38616cb25cf4a4ca998f2 # v0.5.0
12-
13-
name: Contributors
14-
15-
on:
16-
push:
17-
branches:
18-
- main

β€Ž.github/workflows/octoguide.ymlβ€Ž

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
jobs:
2-
octoguide:
3-
if: ${{ !endsWith(github.actor, '[bot]') }}
4-
runs-on: ubuntu-latest
5-
steps:
6-
- uses: JoshuaKGoldberg/octoguide@879a317d50109c6446513149b381feb568364a89 # 0.18.0
7-
with:
8-
config: strict
9-
github-token: ${{ secrets.GITHUB_TOKEN }}
10-
111
name: OctoGuide
122

133
on:
@@ -43,3 +33,13 @@ permissions:
4333
discussions: write
4434
issues: write
4535
pull-requests: write
36+
37+
jobs:
38+
octoguide:
39+
if: ${{ !endsWith(github.actor, '[bot]') }}
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: JoshuaKGoldberg/octoguide@879a317d50109c6446513149b381feb568364a89 # 0.18.0
43+
with:
44+
config: strict
45+
github-token: ${{ secrets.GITHUB_TOKEN }}

β€Ž.github/workflows/post-release.ymlβ€Ž

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
name: Post Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
112
jobs:
213
post_release:
314
runs-on: ubuntu-latest
@@ -18,14 +29,3 @@ jobs:
1829
* [npm package (@latest dist-tag)](https://www.npmjs.com/package/eslint-plugin-package-json/v/${{ env.npm_version }})
1930
2031
Cheers! πŸ“¦πŸš€
21-
22-
name: Post Release
23-
24-
on:
25-
release:
26-
types:
27-
- published
28-
29-
permissions:
30-
issues: write
31-
pull-requests: write
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
name: PR Review Requested
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- review_requested
7+
8+
permissions:
9+
pull-requests: write
10+
111
jobs:
212
pr_review_requested:
313
runs-on: ubuntu-latest
@@ -9,13 +19,3 @@ jobs:
919
run: |
1020
echo "Don't worry if the previous step failed."
1121
echo "See https://github.com/actions-ecosystem/action-remove-labels/issues/221."
12-
13-
name: PR Review Requested
14-
15-
on:
16-
pull_request_target:
17-
types:
18-
- review_requested
19-
20-
permissions:
21-
pull-requests: write

β€Ž.github/workflows/release.ymlβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
steps:
1919
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
2020
id: release
21+
with:
22+
token: ${{ secrets.ACCESS_TOKEN }}
2123
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2224
if: ${{ steps.release.outputs.release_created }}
2325
- uses: ./.github/actions/prepare

0 commit comments

Comments
Β (0)