Skip to content

Commit

Permalink
fix: fix release CI issue (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duell10111 authored Mar 10, 2024
1 parent ba0fea3 commit 1e86988
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 10 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ jobs:
with:
node-version-file: .nvmrc

- name: Add Semantic Release Dependencies
run: npm install -g @semantic-release/changelog @semantic-release/git conventional-changelog-conventionalcommits semantic-release

- name: Semantic Release (Versioning)
run: npx semantic-release --dry-run
run: semantic-release --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -37,7 +40,10 @@ jobs:
- name: Setup
uses: ./.github/actions/setup

- name: Add Semantic Release Dependencies
run: npm install -g @semantic-release/changelog @semantic-release/git conventional-changelog-conventionalcommits semantic-release

- name: Publish to NPM
run: npx semantic-release
run: semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46 changes: 38 additions & 8 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
branches:
- name: main
prerelease: true # Currently only release beta releases
- main
- next
- name: beta
prerelease: true
Expand Down Expand Up @@ -32,15 +31,46 @@ plugins:
release: patch
- type: breaking
release: major
- '@semantic-release/release-notes-generator'
- - '@semantic-release/release-notes-generator'
- preset: "conventionalcommits"
presetConfig:
types:
- type: breaking
section: ":exclamation: BREAKING"
hidden: false
- type: feat
section: ":sparkles: Features"
hidden: false
- type: fix
section: ":bug: Fixes"
hidden: false
- type: docs
section: ":memo: Documentation"
hidden: false
- type: ci
section: ":repeat: CI"
hidden: false
- type: style
section: ":barber: Style"
hidden: false
- type: refactor
section: ":zap: Refactor"
hidden: false
- type: perf
section: ":fast_forward: Performance"
hidden: false
- type: test
section: ":white_check_mark: Testes"
hidden: false
- type: chore
section: "Minor changes"
hidden: false
- '@semantic-release/npm'
- - '@semantic-release/changelog'
- changelogFile: "CHANGELOG.md"
- - "@semantic-release/git"
- assets: ["CHANGELOG.md", "package.json"]
- '@semantic-release/npm'
- assets: [ "CHANGELOG.md", "package.json" ]
message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
- '@semantic-release/github'

npmPublish: false
tarballDir: false

preset: 'angular'

0 comments on commit 1e86988

Please sign in to comment.