Skip to content

Commit

Permalink
TOTP for npm (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Nov 2, 2024
1 parent 3ec8b82 commit 09e05ce
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ jobs:
contents: read
packages: write
steps:
- uses: step-security/wait-for-secrets@v1
id: wait-for-secrets
with:
secrets: |
OTP:
name: 'OTP to publish package'
description: 'OTP from authenticator app'
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
Expand All @@ -20,6 +27,4 @@ jobs:
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: yarn test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --otp ${{ steps.wait-for-secrets.outputs.OTP }}

0 comments on commit 09e05ce

Please sign in to comment.