Files
wanderer/.github/workflows/release_dev.yaml
dependabot[bot] cde1f73288 Bump actions/setup-node from 4 to 6 (#852)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-01 07:05:04 +01:00

47 lines
1.2 KiB
YAML

name: Publish dev Release
on:
push:
branches:
- main
jobs:
docker-build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '22'
- name: Bump versions
run: |
LAST_TAG=$(git describe --tags --abbrev=0)
BASE_VERSION=${LAST_TAG#v}
FULL_SHA=$(git rev-parse HEAD)
VERSION="${BASE_VERSION}-dev+${FULL_SHA}"
cd web && npm version $VERSION --no-git-tag-version && cd ..
cd docs && npm version $VERSION --no-git-tag-version && cd ..
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker Images
run: |
docker buildx build db/ --no-cache -t ghcr.io/open-wanderer/wanderer-db:dev --push
docker buildx build web/ --no-cache -t ghcr.io/open-wanderer/wanderer-web:dev --push