Skip to content

Commit

Permalink
Add secrets to publish workflows
Browse files Browse the repository at this point in the history
Included `DOTENV_KEY` and `NPM_TOKEN` secrets in `publish_nestjs.yaml` and `publish_client.yaml`. This ensures secure handling of tokens in GitHub Actions for publishing packages.
  • Loading branch information
dennisofficial committed Sep 24, 2024
1 parent 4c30017 commit 79c1bdc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
description: 'Package Target'
required: true
type: string
secrets:
NPM_TOKEN:
required: true

jobs:
publish:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish_client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ jobs:
name: Client
uses: ./.github/workflows/_publish.yaml
with:
target: client
target: client
secrets:
DOTENV_KEY: ${{ secrets.NPM_TOKEN }}
4 changes: 3 additions & 1 deletion .github/workflows/publish_nestjs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ jobs:
name: NestJS
uses: ./.github/workflows/_publish.yaml
with:
target: nestjs
target: nestjs
secrets:
DOTENV_KEY: ${{ secrets.NPM_TOKEN }}

0 comments on commit 79c1bdc

Please sign in to comment.