Skip to content

Commit

Permalink
ci: update access handler
Browse files Browse the repository at this point in the history
  • Loading branch information
h2xd committed Jul 4, 2024
1 parent bb9ce39 commit f8592f0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inputs:
run_install:
description: Run the install pnpm command
default: "false"
NPM_TOKEN:
description: "npm token for private registry"
required: true

runs:
using: "composite"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
- uses: actions/checkout@v3

- uses: ./.github/actions/setup
with:
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}

- run: pnpm run storybook:build

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/draft-next-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
- uses: actions/checkout@v3

- uses: ./.github/actions/setup
with:
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}

- uses: release-drafter/release-drafter@65c5fb495d1e69aa8c08a3317bc44ff8aabe9772
id: releaseDrafter
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
- uses: actions/checkout@v3

- uses: ./.github/actions/setup
with:
GH_NPM_TOKEN: ${{ secrets.GH_NPM_TOKEN }}

- run: pnpm build

Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
//npm.pkg.github.com/:_authToken=${GH_NPM_TOKEN}
@hivemq:registry=https://npm.pkg.github.com

0 comments on commit f8592f0

Please sign in to comment.