-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #187 from shawakash/pkg
feat: updating scripts and pipeline and adding some actions
- Loading branch information
Showing
31 changed files
with
486 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
"@paybox/common": patch | ||
"@repo/eslint-config": patch | ||
"@paybox/kafka": patch | ||
"@paybox/recoil": patch | ||
"@repo/typescript-config": patch | ||
"@paybox/ui": patch | ||
"@paybox/api": patch | ||
"@paybox/serverless": patch | ||
"@paybox/zeus": patch | ||
"@paybox/openapi": patch | ||
--- | ||
|
||
feat: updating scripts and pipeline and adding some actions |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Changesets | ||
description: A GitHub action to automate releases with Changesets | ||
runs: | ||
using: "node20" | ||
main: "dist/index.js" | ||
inputs: | ||
publish: | ||
description: "The command to use to build and publish packages" | ||
required: false | ||
version: | ||
description: "The command to update version, edit CHANGELOG, read and delete changesets. Default to `changeset version` if not provided" | ||
required: false | ||
cwd: | ||
description: Sets the cwd for the node process. Default to `process.cwd()` | ||
required: false | ||
commit: | ||
description: | | ||
The commit message. Default to `Version Packages` | ||
required: false | ||
title: | ||
description: The pull request title. Default to `Version Packages` | ||
required: false | ||
setupGitUser: | ||
description: Sets up the git user for commits as `"github-actions[bot]"`. Default to `true` | ||
required: false | ||
default: true | ||
createGithubReleases: | ||
description: "A boolean value to indicate whether to create Github releases after `publish` or not" | ||
required: false | ||
default: true | ||
outputs: | ||
published: | ||
description: A boolean value to indicate whether a publishing is happened or not | ||
publishedPackages: | ||
description: > | ||
A JSON array to present the published packages. The format is `[{"name": "@xx/xx", "version": "1.2.0"}, {"name": "@xx/xy", "version": "0.8.9"}]` | ||
hasChangesets: | ||
description: A boolean about whether there were changesets. Useful if you want to create your own publishing functionality. | ||
pullRequestNumber: | ||
description: The pull request number that was created or updated | ||
branding: | ||
icon: "package" | ||
color: "blue" |
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
rules: | ||
- name: "bug" | ||
if: "contains(github.event.pull_request.title, 'bug')" | ||
color: "d73a4a" | ||
description: "Something isn't working" | ||
- name: "enhancement" | ||
if: "contains(github.event.pull_request.title, 'feature')" | ||
color: "a2eeef" | ||
description: "New feature or request" | ||
- name: "documentation" | ||
if: "contains(github.event.pull_request.title, 'docs')" | ||
color: "0075ca" | ||
description: "Documentation improvement" | ||
|
||
|
||
# Add 'root' label to any root file changes | ||
# Quotation marks are required for the leading asterisk | ||
root: | ||
- changed-files: | ||
- any-glob-to-any-file: '*' | ||
|
||
# Add 'AnyChange' label to any changes within the entire repository | ||
AnyChange: | ||
- changed-files: | ||
- any-glob-to-any-file: '**' | ||
|
||
# Add 'Documentation' label to any changes within 'docs' folder or any subfolders | ||
Documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: docs/** | ||
|
||
# Add 'Documentation' label to any file changes within 'docs' folder | ||
Documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: docs/* | ||
|
||
# Add 'Documentation' label to any file changes within 'docs' or 'guides' folders | ||
Documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: | ||
- docs/* | ||
- guides/* | ||
|
||
## Equivalent of the above mentioned configuration using another syntax | ||
Documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: ['docs/*', 'guides/*'] | ||
|
||
# Add 'Documentation' label to any change to .md files within the entire repository | ||
Documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/*.md' | ||
|
||
# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder | ||
source: | ||
- all: | ||
- changed-files: | ||
- any-glob-to-any-file: 'src/**/*' | ||
- all-globs-to-all-files: '!src/docs/*' | ||
|
||
# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name | ||
feature: | ||
- head-branch: ['^feature', 'feature'] | ||
|
||
# Add 'release' label to any PR that is opened against the `main` branch | ||
release: | ||
- base-branch: 'main' |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Pull Request Labeler" | ||
on: | ||
- pull_request_target | ||
|
||
jobs: | ||
labeler: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: label-the-PR | ||
uses: actions/labeler@v5 | ||
|
||
- id: run-frontend-tests | ||
if: contains(steps.label-the-PR.outputs.all-labels, 'frontend') | ||
run: | | ||
echo "Running frontend tests..." | ||
# Put your commands for running frontend tests here | ||
- id: run-backend-tests | ||
if: contains(steps.label-the-PR.outputs.all-labels, 'backend') | ||
run: | | ||
echo "Running backend tests..." | ||
# Put your commands for running backend tests here |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# @paybox/serverless | ||
|
||
## 0.0.8 | ||
|
||
### Patch Changes | ||
|
||
- init package publishing |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# @paybox/zeus | ||
|
||
## 0.1.0 | ||
|
||
### Minor Changes | ||
|
||
- init package publishing |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# @paybox/common | ||
|
||
## 0.1.0 | ||
|
||
### Minor Changes | ||
|
||
- init package publishing |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# @repo/eslint-config | ||
|
||
## 0.1.0 | ||
|
||
### Minor Changes | ||
|
||
- init package publishing |
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.