Skip to content

Commit d3cc2ff

Browse files
authored
Merge pull request #130 from reearth/chore/CI_permissions_PAT
chore: revert ci permission to use secrets PAT
2 parents 94f8070 + 3bef05d commit d3cc2ff

3 files changed

Lines changed: 7 additions & 13 deletions

File tree

.github/workflows/release_alpha.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,16 @@ on:
22
push:
33
branches: alpha
44
paths-ignore:
5-
- 'package.json'
5+
- "package.json"
66
workflow_dispatch:
77

88
jobs:
99
release:
10-
permissions:
11-
contents: write
1210
uses: reearth/core/.github/workflows/npm_release.yml@beta
1311
with:
14-
branch: alpha
15-
tag: alpha
16-
version-args: --preid alpha prerelease
12+
branch: alpha
13+
tag: alpha
14+
version-args: --preid alpha prerelease
1715
secrets:
18-
PAT: ${{ secrets.GITHUB_TOKEN }}
1916
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17+
PAT: ${{ secrets.PAT }}

.github/workflows/release_beta.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ on:
77

88
jobs:
99
release:
10-
permissions:
11-
contents: write
1210
uses: reearth/core/.github/workflows/npm_release.yml@beta
1311
with:
1412
branch: beta
1513
tag: beta
1614
version-args: --preid beta prerelease
1715
secrets:
18-
PAT: ${{ secrets.GITHUB_TOKEN }}
1916
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17+
PAT: ${{ secrets.PAT }}

.github/workflows/release_latest.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ on:
1111

1212
jobs:
1313
release:
14-
permissions:
15-
contents: write
1614
uses: reearth/core/.github/workflows/npm_release.yml@beta
1715
with:
1816
branch: main
1917
tag: latest
2018
version-args: ${{ inputs.version-type }}
2119
secrets:
22-
PAT: ${{ secrets.GITHUB_TOKEN }}
2320
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
21+
PAT: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)