Skip to content

Commit

Permalink
chore(monorepo): update dev dependencies, nx to v18 & prepare nx rele…
Browse files Browse the repository at this point in the history
…ase config (#1624)
  • Loading branch information
bardisg authored Feb 22, 2024
1 parent 3a3e0c0 commit a4c4fc0
Show file tree
Hide file tree
Showing 18 changed files with 1,460 additions and 1,157 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-beta-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ env:
jobs:
deploy-tag:
name: Deploy BETA/BugBash Feature v3
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64]
if: startsWith(github.ref, 'refs/heads/beta/') || startsWith(github.ref, 'refs/tags/bugbash')

steps:
- name: Install AWS cli
uses: unfor19/install-aws-cli-action@master

- name: Extract feature name from branch
id: extract_branch
shell: bash
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy-dev-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ env:
jobs:
deploy-tag:
name: Deploy to DEV v3
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64]
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/v3-hotfix/') || startsWith(github.ref, 'refs/heads/develop/') || github.event.pull_request.merged == true

steps:
- name: Install AWS cli
uses: unfor19/install-aws-cli-action@master

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy-prod-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ env:
jobs:
deploy-tag:
name: Deploy to PROD v3
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64]
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/main') || github.event.pull_request.merged == true

steps:
- name: Install AWS cli
uses: unfor19/install-aws-cli-action@master

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy-staging-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ env:
jobs:
deploy-tag:
name: Deploy to STAGING v3
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64]
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/heads/v3-hotfix-release') || startsWith(github.ref, 'refs/heads/v3-release') || startsWith(github.ref, 'refs/heads/v3-hotfix/')

steps:
- name: Install AWS cli
uses: unfor19/install-aws-cli-action@master

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/rollback-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ env:
jobs:
deploy-tag:
name: Rollback v3
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64]
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/main')

steps:
- name: Install AWS cli
uses: unfor19/install-aws-cli-action@master

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
jobs:
build:
name: 'Unit Tests, Coverage & Sonar v3'
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64]

steps:
- name: Checkout
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/.pnp
.pnp.js
.idea/
.nx/

# testing
reports/
Expand Down Expand Up @@ -82,4 +83,4 @@ tsconfig.build.tsbuildinfo
**/.project
*.zip

.nx/cache
.nx/cache
13 changes: 13 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
"libsDir": "packages"
},
"defaultBase": "main",
"release": {
"projects": ["*"],
"projectsRelationship": "independent",
"releaseTagPattern": "{projectName}@{version}",
"version": {
"conventionalCommits": true
},
"changelog": {
"projectChangelogs": {
"createRelease": "github"
}
}
},
"pluginsConfig": {
"@nx/js": {
"analyzeSourceFiles": true
Expand Down
Loading

0 comments on commit a4c4fc0

Please sign in to comment.