mirror of
https://github.com/bretzel-app/crumbs.git
synced 2026-10-13 04:06:57 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
14f7c1deaa | ||
|
|
56b0510789 |
@@ -54,3 +54,15 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|
||||||
|
- name: Pin docker-compose image to released version
|
||||||
|
env:
|
||||||
|
VERSION: ${{ github.ref_name }}
|
||||||
|
run: |
|
||||||
|
VERSION="${VERSION#v}"
|
||||||
|
sed -i "s|image: ghcr.io/bretzel-app/crumbs:.*|image: ghcr.io/bretzel-app/crumbs:${VERSION}|" docker-compose.yml
|
||||||
|
git config user.name "github-actions[bot]"
|
||||||
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
git add docker-compose.yml
|
||||||
|
git commit -m "chore: pin docker-compose to v${VERSION} [skip ci]"
|
||||||
|
git push origin HEAD:main
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "crumbs",
|
"name": "crumbs",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.2.2",
|
"version": "0.2.3",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
+1
-5
@@ -60,11 +60,7 @@ echo "Bumping $BUMP version..."
|
|||||||
npm version "$BUMP" -m "chore: bump version to %s" --no-git-tag-version
|
npm version "$BUMP" -m "chore: bump version to %s" --no-git-tag-version
|
||||||
|
|
||||||
NEW_VERSION=$(node -p "require('./package.json').version")
|
NEW_VERSION=$(node -p "require('./package.json').version")
|
||||||
|
git add package.json
|
||||||
# Pin docker-compose image to the new version tag
|
|
||||||
sed -i '' "s|image: ghcr.io/bretzel-app/crumbs:.*|image: ghcr.io/bretzel-app/crumbs:${NEW_VERSION}|" docker-compose.yml
|
|
||||||
|
|
||||||
git add package.json docker-compose.yml
|
|
||||||
git commit -m "chore: bump version to $NEW_VERSION"
|
git commit -m "chore: bump version to $NEW_VERSION"
|
||||||
git tag "v$NEW_VERSION"
|
git tag "v$NEW_VERSION"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user