Skip to content

Commit 94f8070

Browse files
authored
chore: fix ci permissions to release (#129)
1 parent 8c69c40 commit 94f8070

3 files changed

Lines changed: 16 additions & 10 deletions

File tree

.github/workflows/release_alpha.yml

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

88
jobs:
99
release:
10+
permissions:
11+
contents: write
1012
uses: reearth/core/.github/workflows/npm_release.yml@beta
1113
with:
1214
branch: alpha
1315
tag: alpha
1416
version-args: --preid alpha prerelease
1517
secrets:
18+
PAT: ${{ secrets.GITHUB_TOKEN }}
1619
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17-
PAT: ${{ secrets.PAT }}

.github/workflows/release_beta.yml

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

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

.github/workflows/release_latest.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ on:
1111

1212
jobs:
1313
release:
14+
permissions:
15+
contents: write
1416
uses: reearth/core/.github/workflows/npm_release.yml@beta
1517
with:
16-
branch: main
17-
tag: latest
18-
version-args: ${{ inputs.version-type }}
18+
branch: main
19+
tag: latest
20+
version-args: ${{ inputs.version-type }}
1921
secrets:
22+
PAT: ${{ secrets.GITHUB_TOKEN }}
2023
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
21-
PAT: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)