-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): updates documentation (#24)
* chore(docs): updates documentation * chore(docs): adds scripts section
- Loading branch information
1 parent
d4d51b8
commit bb71372
Showing
18 changed files
with
234 additions
and
380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = require('./src/semantic-release'); | ||
module.exports = require('./src/semantic-release/semantic-release.npm'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,12 @@ | ||
# Workflows | ||
|
||
This repository utilizes a **reusable GitHub Actions workflow** to automate the release process | ||
using `semantic-release`. This setup ensures consistent and efficient releases across multiple | ||
projects. | ||
|
||
## Features | ||
|
||
- **Automated Versioning:** Automatically determines the next version based on commit messages. | ||
- **Changelog Generation:** Generates and updates the `CHANGELOG.md` with release notes. | ||
- **Release Branching:** Creates dedicated release branches for each version. | ||
- **Pull Request Automation:** Automatically creates a PR from the release branch to `main` for | ||
review and merging. | ||
- **Asset Attachment:** Attaches build artifacts to GitHub Releases. | ||
|
||
## Setup Guide | ||
|
||
Follow these steps to integrate the reusable release workflow into your project. | ||
|
||
### 1. **Add Required Secrets** | ||
|
||
Ensure that your repository has the necessary secrets configured: | ||
|
||
1. **Navigate to Repository Settings:** | ||
|
||
- Go to your repository on GitHub. | ||
- Click on **Settings**. | ||
|
||
2. **Add Secrets:** | ||
- Go to **Secrets and variables** > **Actions** > **New repository secret**. | ||
- Add the following secrets: | ||
- `GH_TOKEN`: Your GitHub Personal Access Token with `repo` permissions. | ||
- `PAT_FORCE_PUSH`: Your Personal Access Token with permissions to push to protected branches. | ||
|
||
### 2. **Create the Reusable Workflow** | ||
|
||
The reusable workflow is already defined in this repository at | ||
`.github/workflows/reusable-release.yml`. If you're using this repository as the source, you can | ||
skip this step. Otherwise, ensure that your reusable workflow is correctly defined and accessible. | ||
|
||
### 3. **Create an Invoking Workflow** | ||
|
||
Add a new workflow file in your repository to call the reusable release workflow. | ||
|
||
**File Path:** `.github/workflows/call-reusable-release.yml` | ||
|
||
**Content:** | ||
|
||
```yaml | ||
name: Call Reusable Release Workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
uses: @kurocado-studio/style-guide/.github/workflows/reusable-release.yml | ||
with: | ||
node-version: '18' | ||
build-command: 'npm run build' | ||
release-branch-prefix: 'release-' | ||
release-label: 'release' | ||
secrets: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
PAT_FORCE_PUSH: ${{ secrets.PAT_FORCE_PUSH }}# Workflows | ||
``` | ||
This repository provides a standardized and reusable GitHub Actions workflow setup inspired by | ||
Vercel’s Styleguide. The setup includes three primary workflows designed to enhance your project’s | ||
CI/CD pipeline: | ||
|
||
1. [Release Workflow](Release.md): Automates the release process, including versioning, changelog | ||
generation, and pull request creation. | ||
2. [Code Quality Workflow](Code-Quality.md): Ensures code consistency and quality through automated | ||
linting and formatting checks. | ||
3. [Writerside Documentation Workflow](Writerside.md): Builds and deploys project documentation | ||
using Docker-based builders. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.