File tree 1 file changed +0
-36
lines changed
1 file changed +0
-36
lines changed Original file line number Diff line number Diff line change 36
36
npm ci
37
37
npm run build
38
38
39
- # Get short SHA for tagging
40
- - name : Set short SHA
41
- run : echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
42
-
43
- # Docker build and push with staging tags
44
- - name : Login to Docker Hub
45
- uses : docker/login-action@v3
46
- with :
47
- username : ${{ secrets.DOCKER_USERNAME }}
48
- password : ${{ secrets.DOCKER_PASSWORD }}
49
-
50
- - name : Build and push Docker image
51
- uses : docker/build-push-action@v5
52
- with :
53
- context : ./visualization
54
- push : true
55
- tags : |
56
- codecharta/codecharta-visualization:staging
57
- codecharta/codecharta-visualization:staging-${{ env.SHORT_SHA }}
58
-
59
- # Publish to npm with staging tag
60
- - name : Update package version
61
- working-directory : ./visualization
62
- run : |
63
- npm version "0.0.0-staging-${SHORT_SHA}" --no-git-tag-version
64
-
65
- - name : Publish to npm
66
- working-directory : ./visualization
67
- run : |
68
- npm publish --tag staging
69
- env :
70
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
71
-
72
- - name : Create Sample File for Web Demo
73
- run : sh ./.github/workflows/scripts/build_demo_files.sh
74
-
75
39
# Deploy to GitHub Pages staging environment
76
40
- name : Deploy to GitHub Pages
77
41
You can’t perform that action at this time.
0 commit comments