Skip to content

Commit

Permalink
ci: release process
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-maury committed Nov 26, 2024
1 parent 9803d9b commit e84e8a0
Show file tree
Hide file tree
Showing 11 changed files with 6,768 additions and 129 deletions.
48 changes: 26 additions & 22 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,42 @@
---
name: Bug report
about: Create a report to help us improve
about: Create a report to help us improve RealT Properties Map
title: "[BUG] "
labels: bug
assignees: ''

---

**Describe the bug**
### Bug Description
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
### Environment
- **App Version**: [e.g. 1.7.0]
- **Device**: [Desktop/Mobile]
- **OS**: [e.g. Windows 11, iOS 17]
- **Browser**: [e.g. Chrome 120, Safari 17]
- **Screen Resolution**: [e.g. 1920x1080]

### Steps to Reproduce
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
2. Click on '...'
3. Scroll to '...'
4. Observe error

**Expected behavior**
A clear and concise description of what you expected to happen.
### Expected Behavior
A clear description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.
### Actual Behavior
A clear description of what actually happened.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
### Wallet Information (if applicable)
- Network: [e.g. Gnosis, ETH]
- Connected wallet: [Yes/No]
- Wallet type: [e.g. MetaMask, WalletConnect]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
### Screenshots/Videos
If applicable, add screenshots or videos to help explain your problem.
<!-- Drag and drop images here or provide links -->

**Additional context**
Add any other context about the problem here.
### Console Errors
If applicable, please copy and paste any relevant console errors:
47 changes: 37 additions & 10 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,47 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEAT]"
about: Suggest an idea for RealT Properties Map
title: "[FEAT] "
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
### Feature Description
A clear and concise description of the feature you'd like to see added.

**Describe the solution you'd like**
A clear and concise description of what you want to happen.
### Use Case
Explain the use case or problem this feature would solve. Ex. "As a RealT property owner, I want to..."

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
### Proposed Solution
Describe how you envision this feature working. Be as specific as possible.

**Additional context**
Add any other context or screenshots about the feature request here.
### Feature Category
Select the relevant category (delete non-applicable ones):
- [ ] Map Visualization
- [ ] Property Information
- [ ] Wallet Integration
- [ ] Portfolio Analytics
- [ ] User Interface
- [ ] Data Export/Import
- [ ] Mobile Experience
- [ ] Other

### Expected Benefits
Explain how this feature would benefit users of RPM.

### Alternative Solutions
Describe any alternative solutions or features you've considered.

### Additional Context
- Screenshots/mockups (if applicable)
- References to similar features in other applications
- Any other relevant information

### Technical Considerations (optional)
Any technical details or considerations that might be relevant to implementing this feature.

### Would you be willing to contribute to this feature?
- [ ] Yes, I can help with development
- [ ] Yes, I can help with testing
- [ ] No, but I can provide feedback
29 changes: 0 additions & 29 deletions .github/workflows/main-backend.yml

This file was deleted.

17 changes: 10 additions & 7 deletions .github/workflows/main-frontend.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Main Frontend
name: Main
on:
push:
branches: [ "main" ]
paths:
- frontend/**
workflow_dispatch:

jobs:
Expand All @@ -14,16 +12,21 @@ jobs:
context_path: frontend
secrets: inherit

release-frontend:
concurrency: release
deploy-backend:
uses: ./.github/workflows/reusable-deploy.yml
with:
service_name: backend
context_path: backend
secrets: inherit

release:
uses: ./.github/workflows/reusable-release.yml
permissions:
contents: write
issues: write
pull-requests: write
packages: write
with:
working-directory: frontend
name: Frontend
name: Monorepo
secrets:
SEMANTIC_RELEASE_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
8 changes: 7 additions & 1 deletion .github/workflows/reusable-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,14 @@ jobs:
COMMIT_MSG=$(git log -1 --pretty=%B)
if echo "$COMMIT_MSG" | grep -qiE '^(ci|chore|docs|style|test)'; then
echo "should_run=false" >> $GITHUB_OUTPUT
else
exit 0
fi
CHANGED_FILES=$(git diff --name-only HEAD HEAD~1)
if echo "$CHANGED_FILES" | grep -q "^${{ inputs.context_path }}/"; then
echo "should_run=true" >> $GITHUB_OUTPUT
else
echo "should_run=false" >> $GITHUB_OUTPUT
fi
build:
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/reusable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Reusable Release
on:
workflow_call:
inputs:
working-directory:
required: true
type: string
name:
required: true
type: string
Expand All @@ -28,13 +25,11 @@ jobs:
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
node-version: 22
- name: Install root dependencies
run: npm ci
working-directory: ${{ inputs.working-directory }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
run: npx semantic-release
working-directory: ${{ inputs.working-directory }}
run: npx semantic-release
20 changes: 20 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
branches: ['main'],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
['@semantic-release/npm', {
npmPublish: false,
pkgRoot: '.'
}],
['@semantic-release/git', {
assets: [
'package.json',
'CHANGELOG.md'
],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}],
'@semantic-release/github'
]
}
26 changes: 0 additions & 26 deletions backend/.releaserc.js

This file was deleted.

26 changes: 0 additions & 26 deletions frontend/.releaserc.js

This file was deleted.

Loading

0 comments on commit e84e8a0

Please sign in to comment.