Skip to content

Commit

Permalink
build: Publishing npm from dist folder to resolve changei n build to …
Browse files Browse the repository at this point in the history
…remove dist nesting
  • Loading branch information
robdmoore committed Mar 16, 2023
1 parent 239fefa commit 2a5b9ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@
}
}
],
"@semantic-release/npm",
[
"@semantic-release/npm",
{
"pkgRoot": "dist"
}
],
"@semantic-release/github"
]
}
Expand Down

0 comments on commit 2a5b9ea

Please sign in to comment.