Skip to content

Commit

Permalink
feat(ci): release job
Browse files Browse the repository at this point in the history
  • Loading branch information
Walheimat committed Jan 27, 2024
1 parent faea068 commit 478abcc
Show file tree
Hide file tree
Showing 7 changed files with 6,445 additions and 628 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release
on: workflow_dispatch

jobs:
test:
uses: ./.github/workflows/verify.yaml
release:
needs: [test]
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Check out the repository
uses: actions/checkout@v3
with:
submodules: true
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: npm ci

- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
run: npx semantic-release
7 changes: 4 additions & 3 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ on:
branches:
- trunk
paths-ignore:
- '.gitignore'
- 'CHANGELOG.md'
- 'README.org'
- .gitignore
- CHANGELOG.md
- README.org
workflow_call:

jobs:
test:
Expand Down
44 changes: 44 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"branches": [
"trunk"
],
"repositoryUrl": "[email protected]:Walheimat/bydi.git",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"type": "feat",
"release": "patch"
}
]
},
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
"publishCmd": "make update-next-version NEXT_PACKAGE_VERSION=${nextRelease.version}"
}
],
[
"@semantic-release/changelog",
{
"changelogTitle": "# Changelog"
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"bydi.el",
"Cask",
"Makefile"
]
}
]
]
}
5 changes: 0 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.4]

### Added
Expand Down
2 changes: 1 addition & 1 deletion dinghy
Loading

0 comments on commit 478abcc

Please sign in to comment.