Skip to content

Commit

Permalink
fix(nestjs-auth): fix adding of dependencies when building
Browse files Browse the repository at this point in the history
  • Loading branch information
tsangste committed Jul 4, 2023
1 parent 93738bf commit 81fbd1f
Show file tree
Hide file tree
Showing 4 changed files with 237 additions and 773 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Install jq
uses: dcarbone/install-jq-action@v1.0.1

- name: Install sponge
run: sudo apt-get install moreutils

- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down
6 changes: 6 additions & 0 deletions libs/nestjs-auth/release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ module.exports = {
changelogFile: `${srcRoot}/CHANGELOG.md`,
},
],
[
'@semantic-release/exec',
{
prepareCmd: `jq 'del(.dependencies)' ./dist/${srcRoot}/package.json | sponge ./dist/${srcRoot}/package.json`,
},
],
'@semantic-release/npm',
[
'@semantic-release/git',
Expand Down
Loading

0 comments on commit 81fbd1f

Please sign in to comment.