From 2a5b9ead02a7f9f0f50fab3b018b9ce7fdf4c7a0 Mon Sep 17 00:00:00 2001 From: Rob Moore Date: Thu, 16 Mar 2023 09:28:07 +0800 Subject: [PATCH] build: Publishing npm from dist folder to resolve changei n build to remove dist nesting --- .github/workflows/release.yml | 4 +++- package.json | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 41df9021..84af496d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,9 +77,11 @@ jobs: mkdir -p dist unzip -q "artifacts/package.zip" -d dist + - name: Install dependencies to get semantic release components and plugins + run: npm ci --ignore-scripts + - name: 'Semantic release' run: npx semantic-release - working-directory: dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index e0023362..a0a86acc 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,12 @@ } } ], - "@semantic-release/npm", + [ + "@semantic-release/npm", + { + "pkgRoot": "dist" + } + ], "@semantic-release/github" ] }