Skip to content

Commit

Permalink
ci: trying to fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
neferin12 committed Feb 6, 2023
1 parent 3268bb9 commit e9035f8
Showing 1 changed file with 35 additions and 26 deletions.
61 changes: 35 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- run: cp server/.env.template server/.env
- run: docker-compose build

release_server:
release:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
Expand All @@ -56,37 +56,46 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: |
git config --global user.name 'Bot'
git config --global user.email 'info@educorvi.de'
git commit -am "chore: version[skip-ci]"
git push
release_client:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: release_server
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- run: yarn install
- run: yarn up
- run: yarn run semantic-release -e semantic-release-monorepo
name: Release Server
name: Release Client
working-directory: ./client
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: |
git config --global user.name 'Bot'
git config --global user.email 'info@educorvi.de'
git commit -am "chore: version[skip-ci]"
git checkout develop
git rebase main
git add -A
git diff-index --quiet HEAD || git commit -am "chore: version[skip-ci]"
git push
# release_client:
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# needs: release_server
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
# - name: Setup NodeJS
# uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: 'yarn'
# - run: yarn install
# - run: yarn run semantic-release -e semantic-release-monorepo
# name: Release Client
# working-directory: ./client
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# - run: |
# git config --global user.name 'Bot'
# git config --global user.email 'info@educorvi.de'
# git commit -am "chore: version[skip-ci]"
# git pull --rebase
# git checkout develop
# git rebase main
# git push

0 comments on commit e9035f8

Please sign in to comment.