Skip to content

Commit

Permalink
fix: commit version job 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Aug 21, 2023
1 parent ced8ff4 commit 9ba2c07
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 27 deletions.
53 changes: 30 additions & 23 deletions .github/workflows/xquare-deployment-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,29 +75,6 @@ jobs:
id: get_service
run: echo ::set-output name=SERVICE::$(echo ${{ matrix.workspaces.name }} | cut -d / -f 2)

- name: Sync Package Version
run: yarn workspace @service/${{ steps.get_service.outputs.SERVICE }} version ${{ needs.get-versioning.outputs.type }}

- name: Get Package Version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
with:
path: ${{ matrix.workspaces.location }}

- name: Pull Commit
run: git pull

- name: Commit With Versioning
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "release(${{steps.get_service.outputs.SERVICE}}): ${{ steps.package-version.outputs.current-version }} [skip ci]"
branch: main
commit_options: '--no-verify --signoff'
repository: .
commit_user_name: XQUARE Frontend Bot
commit_user_email: [email protected]
commit_author: XQUARE Frontend Bot <[email protected]>

- name: Get access key
id: access_key
run: |
Expand All @@ -123,3 +100,33 @@ jobs:
yarn_docker_build: true
yarn_workspace: "@service/${{ steps.get_service.outputs.SERVICE }}"


commit_version:
name: Commit version
needs: [get-diff-workspace, get-versioning]
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJson(needs.get-diff-workspace.outputs.matrix) }}
steps:
- name: Sync Package Version
run: yarn workspace @service/${{ steps.get_service.outputs.SERVICE }} version ${{ needs.get-versioning.outputs.type }}

- name: Get Package Version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
with:
path: ${{ matrix.workspaces.location }}

- name: Pull Commit
run: git pull

- name: Commit With Versioning
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "release(${{steps.get_service.outputs.SERVICE}}): ${{ steps.package-version.outputs.current-version }} [skip ci]"
branch: main
commit_options: '--no-verify --signoff'
repository: .
commit_user_name: XQUARE Frontend Bot
commit_user_email: [email protected]
commit_author: XQUARE Frontend Bot <[email protected]>
2 changes: 1 addition & 1 deletion services/apply/.xquare/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ config:
name: apply
service_type: fe
prefix: /apply
port: 3000
port: 3000
2 changes: 1 addition & 1 deletion services/dormitory-admin/.xquare/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ config:
service_type: fe
port: 3000
domain:
prod: admin.xquare.app
prod: admin.xquare.app
2 changes: 1 addition & 1 deletion services/feed/.xquare/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ config:
name: feed
service_type: fe
prefix: /feed
port: 3000
port: 3000
2 changes: 1 addition & 1 deletion services/school-meal/.xquare/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ config:
name: school-meal
service_type: fe
prefix: /school-meal
port: 3000
port: 3000

0 comments on commit 9ba2c07

Please sign in to comment.