Skip to content

Commit

Permalink
add secret loading
Browse files Browse the repository at this point in the history
  • Loading branch information
adjkant committed Apr 10, 2024
1 parent aef60c8 commit 675337e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/semantic-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,18 @@ jobs:
- name: Build SDK's
run: yarn g:build

- name: Release needed SDK's
- name: Load Secrets
uses: 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0
with:
# Export loaded secrets as environment variables
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
NPM_TOKEN: op://sdk-npm-deploys/npm-token/secret

- name: Release Needed SDK's
env:
NPM_CONFIG_USERCONFIG: /dev/null
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ env.NPM_TOKEN }}
run: yarn g:release

0 comments on commit 675337e

Please sign in to comment.