Skip to content

Commit 5d74c51

Browse files
committed
refactor: set auth token to environment variable
1 parent 3b6cd9c commit 5d74c51

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

โ€Ž.github/workflows/publication.ymlโ€Ž

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ jobs:
1414
with:
1515
ref: ${{ github.event.release.tag_name }}
1616

17-
- name: Setup Bun
18-
uses: oven-sh/setup-bun@v2
19-
20-
- name: Install dependencies
21-
run: bun install --frozen-lockfile
22-
2317
- name: Verify tag matches package.json
2418
run: |
2519
TAG_NAME="${{ github.event.release.tag_name }}"
@@ -34,16 +28,18 @@ jobs:
3428
fi
3529
echo "โœ… ๋ฒ„์ „ ์ผ์น˜ ํ™•์ธ: ${TAG_VERSION}"
3630
31+
- name: Setup Bun
32+
uses: oven-sh/setup-bun@v2
33+
3734
- name: Build package
3835
run: |
36+
bun install --frozen-lockfile
3937
bun run prepare
4038
bun run build:lib
4139
4240
- name: Publish to npm
4341
env:
44-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
4543
run: |
46-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
47-
4844
bun publish
4945
echo "npm ๋ฐฐํฌ๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค."

0 commit comments

Comments
ย (0)