diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fbb9e4c..4ac7266 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/package.json b/package.json index d3d03fd..dcc3206 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/release.config.js b/release.config.js index 99cafe2..f966d7e 100644 --- a/release.config.js +++ b/release.config.js @@ -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',