Skip to content

Commit 1875476

Browse files
authored
Merge pull request #143 from NaverPayDev/fix/canary-oidc
fix: canary/rc 워크플로우 OIDC 인증 방식으로 전환
2 parents c7b723b + e39f21a commit 1875476

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/canary.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
types:
77
- created
88

9+
permissions:
10+
id-token: write
11+
contents: write
12+
913
concurrency: ${{ github.workflow }}-${{ github.ref }}
1014

1115
jobs:
@@ -28,6 +32,14 @@ jobs:
2832
node-version: '22'
2933
cache: 'pnpm'
3034

35+
- name: Check and upgrade npm
36+
run: |
37+
echo "Current npm version:"
38+
npm --version
39+
npm install -g npm@latest
40+
echo "Upgraded npm version:"
41+
npm --version
42+
3143
- name: Install Dependencies
3244
run: pnpm install --frozen-lockfile
3345

@@ -39,7 +51,6 @@ jobs:
3951
with:
4052
github_token: ${{ secrets.ACTION_TOKEN }} # Add user PAT if necessary
4153
npm_tag: canary # Specify the npm tag to use for deployment
42-
npm_token: ${{ secrets.NPM_TOKEN }} # Provide the token required for npm publishing
4354
publish_script: pnpm run release:canary # Script to execute Canary deployment
4455
packages_dir: packages # Directory of packages to detect changes (default: packages,share)
4556
excludes: '.turbo,.github' # Files or directories to exclude from change detection

.github/workflows/rc.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
concurrency: ${{ github.workflow }}-${{ github.ref }}
1010

1111
permissions:
12+
id-token: write
1213
contents: write # to create release
1314

1415
jobs:
@@ -34,6 +35,14 @@ jobs:
3435
node-version: '22'
3536
cache: 'pnpm'
3637

38+
- name: Check and upgrade npm
39+
run: |
40+
echo "Current npm version:"
41+
npm --version
42+
npm install -g npm@latest
43+
echo "Upgraded npm version:"
44+
npm --version
45+
3746
- name: Install Dependencies
3847
run: pnpm install --frozen-lockfile
3948

@@ -45,7 +54,6 @@ jobs:
4554
with:
4655
github_token: ${{ secrets.ACTION_TOKEN }} # Add user PAT if necessary
4756
npm_tag: rc # Specify the npm tag to use for deployment
48-
npm_token: ${{ secrets.NPM_TOKEN }} # Provide the token required for npm publishing
4957
publish_script: pnpm run release:canary # Script to execute Canary deployment
5058
packages_dir: packages # Directory of packages to detect changes (default: packages,share)
5159
excludes: '.turbo,.github' # Files or directories to exclude from change detection

0 commit comments

Comments
 (0)