Skip to content

Commit

Permalink
ci: Run semantic-release manually instead of using action
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-algms committed Nov 29, 2023
1 parent 7696dbc commit 39c30e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,11 @@ jobs:
name: dist
path: dist

- name: Semantic Release
id: semantic_release
uses: cycjimmy/semantic-release-action@v4
with: # You can specify specifying version range for the extra plugins if you prefer.
extra_plugins: |
@semantic-release/git
@semantic-release/github
conventional-changelog-conventionalcommits
- run: pnpm setup

- run: pnpm add -g semantic-release @semantic-release/github conventional-changelog-conventionalcommits

- run: pnpm exec semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- id: publish
if: steps.semantic_release.outputs.new_release_published == 'true'
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./dist/package.json
3 changes: 2 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
[
"@semantic-release/npm",
{
"npmPublish": false
"npmPublish": true,
"pkgRoot": "./dist"
}
],
"@semantic-release/github",
Expand Down

0 comments on commit 39c30e8

Please sign in to comment.