diff --git a/.github/workflows/semantic-release.yaml b/.github/workflows/semantic-release.yaml index 46499c9b0..ef32502fb 100644 --- a/.github/workflows/semantic-release.yaml +++ b/.github/workflows/semantic-release.yaml @@ -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