Skip to content

Commit

Permalink
fix: build issue where full path of dist/library folder is pushed to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
uzenith360 committed Jan 28, 2023
1 parent ea07da9 commit 28570c6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ jobs:
# Redundant cos tests workflow has already been run
# - name: Test
# run: npm run test:unit --if-present
- name: Build
run: npm run build
# Semantic plugin already builds the project
# - name: Build
# run: npm run build
- name: Create .npmrc file
run: |
echo registry=https://registry.npmjs.org/ > .npmrc
echo @uzenith360:registry=https://npm.pkg.github.com/ > .npmrc
echo '//npm.pkg.github.com/:_authToken=${{ secrets.GH_TOKEN }}' >> .npmrc
- name: Change directory to library folder
run: cd dist/ngx-jwt-auth
# - name: Change directory to library folder
# run: cd dist/ngx-jwt-auth
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: npx semantic-release
run: npm run semantic-release
run: npx semantic-release
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"watch": "ng build --watch --configuration development",
"prepack": "npm run build",
"test": "ng test ngx-jwt-auth",
"prepare": "husky install",
"semantic-release": "semantic-release"
"prepare": "husky install"
},
"repository": {
"type": "git",
Expand Down
6 changes: 5 additions & 1 deletion release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ module.exports = {
changelogFile: 'CHANGELOG.md'
}
],
'@semantic-release/npm',
// '@semantic-release/npm',
[
'@semantic-release/npm',
{ "pkgRoot": "./dist/ngx-jwt-auth" }
],
'@semantic-release/github',
[
'@semantic-release/git',
Expand Down

0 comments on commit 28570c6

Please sign in to comment.