Skip to content

Commit

Permalink
feat: migrate to vault
Browse files Browse the repository at this point in the history
  • Loading branch information
Eraz1997 committed Oct 15, 2024
1 parent 64c2869 commit 84ee373
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: hashicorp/vault-action@v2
with:
method: jwt
path: jwt-github-actions
role: github-issuu-issuu-api-sdk
url: https://vault.bendingspoons.com
secrets: |
static2/data/github/issuu/issuu-api-sdk/manual NPM_CI_TOKEN
- name: Checkout Repository
uses: actions/checkout@v2

Expand All @@ -19,7 +28,7 @@ jobs:
- name: Authenticate with npm
run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_CI_TOKEN }}
NODE_AUTH_TOKEN: ${{ env.NPM_CI_TOKEN }}

- name: Publish Package
run: npm publish --access public
Expand Down

0 comments on commit 84ee373

Please sign in to comment.