Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Gordon committed Apr 23, 2024
1 parent 7936e3f commit 6090969
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,20 @@ env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build-job:
permissions:
contents: read
id-token: write

release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
contents: read
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v3
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 +44,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 6090969

Please sign in to comment.