chore: add semantic version to pipeline
Some checks failed
Publish image / bump-crate (push) Failing after 1m33s
Publish image / create-docker-images (push) Has been skipped

This commit is contained in:
Alexander Navarro 2025-03-24 16:23:40 -03:00
parent e0b259cc6f
commit 5bd421f12b
3 changed files with 43 additions and 19 deletions

View file

@ -6,8 +6,25 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
bump-crate:
runs-on: rust
steps:
- run: cargo install cargo-bump
- name: Bump version and publish
uses: https://github.com/cocogitto/cocogitto-action@v3.10
env:
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_TOKEN_FORGEJO }}
with:
release: true
check-latest-tag-only: true
git-user: 'Cog Bot'
git-user-email: 'cog@alecodes.page'
create-docker-images: create-docker-images:
runs-on: host runs-on: host
needs:
- bump-crate
steps: steps:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3

View file

@ -7,8 +7,13 @@ generate_mono_repository_package_tags = true
branch_whitelist = [] branch_whitelist = []
skip_ci = "[skip ci]" skip_ci = "[skip ci]"
skip_untracked = false skip_untracked = false
pre_bump_hooks = [] pre_bump_hooks = [
post_bump_hooks = [] "sed -E -i 's/(\"version\":) \"[0-9.]{5}\"/\\1 \"{{version|0.0.1}}\"/gi' package.json",
"cargo build --release",
"echo 'bumping from {{latest|0.0.0}} to {{version|0.0.1}}'",
"cargo bump {{version|0.0.1}}",
]
post_bump_hooks = ["git push", "git push origin {{version_tag}}"]
pre_package_bump_hooks = [] pre_package_bump_hooks = []
post_package_bump_hooks = [] post_package_bump_hooks = []

View file

@ -1,18 +1,20 @@
{ {
"name": "compendium", "name": "compendium",
"module": "index.ts", "module": "index.ts",
"devDependencies": { "version": "0.0.0",
"@alecodes/bun-plugin-sass": "^0.1.2", "devDependencies": {
"@alecodes/bun-static-builder": "^0.1.0", "@alecodes/bun-plugin-sass": "^0.1.2",
"@types/bun": "latest" "@alecodes/bun-static-builder": "^0.1.0",
}, "@types/bun": "latest"
"peerDependencies": { },
"typescript": "^5.0.0" "peerDependencies": {
}, "typescript": "^5.0.0"
"type": "module", },
"dependencies": { "type": "module",
"@mini-strap/components": "^0.1.0", "dependencies": {
"@mini-strap/core": "^0.1.2", "@mini-strap/components": "^0.1.0",
"htmx.org": "2.0.4" "@mini-strap/core": "^0.1.2",
} "htmx.org": "2.0.4"
}
} }