Skip to content

Commit

Permalink
Fix workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Gordon committed Apr 23, 2024
1 parent 7936e3f commit 0212f93
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
fetch-depth: 0

- name: "Retrieve NPM Token"
- name: 'Retrieve NPM Token'
id: vault
uses: hashicorp/vault-action@v2.4.3
with:
Expand All @@ -51,18 +51,15 @@ jobs:
scope: '@contentful'
always-auth: true

- name: "Create NPM .npmrc"
shell: bash
run: |
echo "//npm.pkg.github.com/:_authToken=${GITHUB_PACKAGES_READ_TOKEN}" > ~/.npmrc
echo "@contentful:registry=https://npm.pkg.github.com" >> ~/.npmrc
env:
GITHUB_PACKAGES_READ_TOKEN: ${{ steps.vault.outputs.GITHUB_PACKAGES_READ_TOKEN }}

- run: npm ci
- name: 'Create GH .npmrc'
shell: bash
run: |
echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" > ~/.npmrc
echo "@contentful:registry=https://npm.pkg.github.com" >> ~/.npmrc
env:
GITHUB_TOKEN: ${{ steps.vault.outputs.GITHUB_PACKAGES_READ_TOKEN }}
GITHUB_TOKEN: ${{ steps.vault.outputs.GITHUB_PACKAGES_WRITE_TOKEN }}

- run: npm ci
- run: npm run build
- run: npm test

Expand Down

0 comments on commit 0212f93

Please sign in to comment.