Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .devcontainer/dev.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- .env
build:
context: .
dockerfile: .devcontainer/dev.Dockerfile
dockerfile: configs/docker/dev.Dockerfile
args:
USERNAME: devu
USER_UID: 1001
Expand All @@ -17,7 +17,9 @@ services:
BIN_DEPLOY_PREP: ${BIN_DEPLOY_PREP}
BIN_DEPLOY_REQ: ${BIN_DEPLOY_REQ}
BUN_BIN: ${BUN_BIN_R}
SSH_AUTH_SOCK: /ssh-agent
volumes:
- ${SSH_AUTH_SOCK:-/dev/null}:/ssh-agent
- .:/workspace
- ~/.config/git/config:/etc/gitconfig
networks:
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/new_tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Tag on version bump after rebase

on:
push:
branches:
- main

permissions:
contents: write

jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get version from package.json
id: get_version
run: |
VERSION=$(grep '"version"' package.json | head -1 | sed -E 's/.*"version": *"([^"]+)".*/\1/')
echo "Detected version: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Check if tag exists
id: tag_exists
run: |
TAG="v${{ steps.get_version.outputs.version }}"
echo "Checking for tag: $TAG"
if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "Tag already exists: $TAG"
echo "exists=true" >> $GITHUB_OUTPUT
else
echo "Tag does not exist: $TAG"
echo "exists=false" >> $GITHUB_OUTPUT
fi

- name: Create and push tag
if: steps.tag_exists.outputs.exists == 'false'
run: |
TAG="v${{ steps.get_version.outputs.version }}"
git config user.name "github-actions[bot]"

echo "Creating tag: $TAG"
git tag "$TAG"
git push origin "$TAG"
File renamed without changes.
Loading