ci: 🔄 synced local '.github/workflows/' with remote 'workflows/swift' #137
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Semantic Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main, next ] | |
jobs: | |
semantic-release: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Semantic Release Config | |
run: | | |
echo " | |
branches: | |
- main | |
- name: 'next' | |
prerelease: true | |
preset: 'conventionalcommits' | |
tagFormat: '\${version}' | |
plugins: | |
- - '@semantic-release/commit-analyzer' | |
- releaseRules: | |
- breaking: true | |
release: major | |
- type: build | |
release: patch | |
- type: chore | |
release: false | |
- type: feat | |
release: false | |
- type: fix | |
release: false | |
- scope: 'no-release' | |
release: false | |
- scope: 'hotfix' | |
release: patch | |
- scope: 'patch' | |
release: patch | |
- scope: 'minor' | |
release: minor | |
- scope: 'major' | |
release: major | |
- - '@semantic-release/release-notes-generator' | |
- - '@semantic-release/github' | |
- successComment: false | |
failTitle: false" > .releaserc.yml | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install semantic-release | |
run: | | |
npm install semantic-release@v24 conventional-changelog-conventionalcommits@v8 -D | |
npm list | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npx semantic-release |