Skip to content

Commit

Permalink
fix: [] - debug release
Browse files Browse the repository at this point in the history
  • Loading branch information
ContentfulCormac committed Jan 22, 2024
1 parent 0272071 commit 6706645
Showing 1 changed file with 10 additions and 22 deletions.
32 changes: 10 additions & 22 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: "Retrieve NPM Token"
id: vault
uses: hashicorp/vault-action@v2.4.3
Expand All @@ -39,33 +34,26 @@ jobs:
secrets: |
secret/data/github/github_packages_write GITHUB_PACKAGES_WRITE_TOKEN | GITHUB_PACKAGES_WRITE_TOKEN ;
github/token/integration-frontend-toolkit-semantic-release token | GITHUB_TOKEN ;
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://npm.pkg.github.com"
scope: '@contentful'

- name: "Create GH .npmrc"
shell: bash
run: |
echo -e "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}\n@contentful:registry=https://npm.pkg.github.com\nalways-auth=true" > .npmrc
env:
GITHUB_TOKEN: ${{ steps.vault.outputs.GITHUB_PACKAGES_WRITE_TOKEN }}

- name: Install dependencies
run: npm ci
- run: npm ci
env:
GITHUB_TOKEN: ${{ steps.vault.outputs.GITHUB_PACKAGES_WRITE_TOKEN }}

- name: Build
run: npm run build
- run: npm run build
- name: Test
run: npm test

- name: Release
shell: bash
run: |
echo -e "//npm.pkg.github.com/:_authToken=${NPM_TOKEN}\n@contentful:registry=https://npm.pkg.github.com\nalways-auth=true" > .npmrc
cat .npmrc
- run: |
npx semantic-release
env:
GITHUB_TOKEN: ${{ steps.vault.outputs.GITHUB_PACKAGES_WRITE_TOKEN }}
NPM_TOKEN: ${{ steps.vault.outputs.GITHUB_PACKAGES_WRITE_TOKEN }}
GH_TOKEN: ${{ steps.vault.outputs.GITHUB_PACKAGES_WRITE_TOKEN }}
NODE_AUTH_TOKEN: ${{ steps.vault.outputs.GITHUB_PACKAGES_WRITE_TOKEN }}

0 comments on commit 6706645

Please sign in to comment.