Skip to content

Commit

Permalink
Merge pull request #42 from tokens-studio/use-secret
Browse files Browse the repository at this point in the history
chore: use GitHub secrets instead of hashicorp vault for now
  • Loading branch information
jorenbroekema authored Jul 4, 2024
2 parents fb57cdf + d4f35b2 commit d64fee5
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,17 @@ jobs:
- name: Install Dependencies
run: npm ci

- name: Import Secrets
id: secrets
uses: hashicorp/vault-action@v2
with:
url: ${{ vars.VAULT_URL }}
role: ${{ vars.VAULT_ROLE }}
method: jwt
namespace: admin
secrets: |
${{ vars.VAULT_PATH }} TOKEN | NPM_TOKEN;
# FIXME: not working ....
# - name: Import Secrets
# id: secrets
# uses: hashicorp/vault-action@v2
# with:
# url: ${{ vars.VAULT_URL }}
# role: ${{ vars.VAULT_ROLE }}
# method: jwt
# namespace: admin
# secrets: |
# ${{ vars.VAULT_PATH }} TOKEN | NPM_TOKEN;

- name: Create Release Pull Request or Publish to npm
id: changesets
Expand All @@ -55,4 +56,5 @@ jobs:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ steps.secrets.outputs.NPM_TOKEN }}
# NODE_AUTH_TOKEN: ${{ steps.secrets.outputs.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit d64fee5

Please sign in to comment.