Skip to content

Commit f8592f0

Browse files
committed
ci: update access handler
1 parent bb9ce39 commit f8592f0

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

.github/actions/setup/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ inputs:
44
run_install:
55
description: Run the install pnpm command
66
default: "false"
7+
NPM_TOKEN:
8+
description: "npm token for private registry"
9+
required: true
710

811
runs:
912
using: "composite"

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
- uses: actions/checkout@v3
2020

2121
- uses: ./.github/actions/setup
22+
with:
23+
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
2224

2325
- run: pnpm run storybook:build
2426

.github/workflows/draft-next-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
- uses: actions/checkout@v3
2323

2424
- uses: ./.github/actions/setup
25+
with:
26+
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
2527

2628
- uses: release-drafter/release-drafter@65c5fb495d1e69aa8c08a3317bc44ff8aabe9772
2729
id: releaseDrafter

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
- uses: actions/checkout@v3
1818

1919
- uses: ./.github/actions/setup
20+
with:
21+
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}
2022

2123
- run: pnpm build
2224

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
//npm.pkg.github.com/:_authToken=${GH_NPM_TOKEN}
12
@hivemq:registry=https://npm.pkg.github.com

0 commit comments

Comments
 (0)