Skip to content

Commit

Permalink
Revert "Remove releasing steps for manual testing #3910"
Browse files Browse the repository at this point in the history
This reverts commit d16e104.
  • Loading branch information
BenediktMehl committed Feb 11, 2025
1 parent 45ea284 commit 1ef872b
Showing 1 changed file with 40 additions and 7 deletions.
47 changes: 40 additions & 7 deletions .github/workflows/staging-visualization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,46 @@ jobs:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Build visualization
env:
NODE_OPTIONS: "--max_old_space_size=4096"
working-directory: ./visualization
run: |
npm ci
npm run build
- name: Build visualization
env:
NODE_OPTIONS: "--max_old_space_size=4096"
working-directory: ./visualization
run: |
npm ci
npm run build
# Get short SHA for tagging
- name: Set short SHA
run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV

# Docker build and push with staging tags
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./visualization
push: true
tags: |
codecharta/codecharta-visualization:staging
codecharta/codecharta-visualization:staging-${{ env.SHORT_SHA }}
# Publish to npm with staging tag
- name: Update package version
working-directory: ./visualization
run: |
npm version "0.0.0-staging-${SHORT_SHA}" --no-git-tag-version
- name: Publish to npm
working-directory: ./visualization
run: |
npm publish --tag staging
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create Sample File for Web Demo
run: sh ./.github/workflows/scripts/build_demo_files.sh
Expand Down

0 comments on commit 1ef872b

Please sign in to comment.