Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update manual releases GH action #165

Merged
merged 2 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
inputs:
release-type:
description: 'Type of Release'
required: true
type: choice
default: 'patch'
options:
- 'major'
- 'minor'
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
run: npm run build && cd dist && ls -la

- name: Run manual release
run: cd dist && npx semantic-release --no-ci --release-as ${{ github.event.inputs.release-type }}
run: cd dist && npx semantic-release --no-ci --release-as ${{ github.event.inputs.release-type }} --force
env:
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7 changes: 4 additions & 3 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ module.exports = {
['@semantic-release/commit-analyzer', {
preset: 'conventionalcommits',
releaseRules: [
{ 'type': 'docs', 'scope': 'README', 'release': 'patch' },
{ 'type': 'refactor', 'release': 'patch' },
{ 'type': 'chore', 'release': 'patch' },
{ 'type': 'docs', 'scope': 'README', 'release': 'patch', section: 'Other Updates' },
{ 'type': 'refactor', 'release': 'patch',section: 'Other Updates' },
{ 'type': 'chore', 'release': 'patch', section: 'Other Updates' },
{ type: 'chore', section: 'Other Updates' },
{ 'scope': 'no-release', 'release': false }
],
parserOpts: {
Expand Down