Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit e543dea

Browse files
committed
x
1 parent e79c5de commit e543dea

File tree

6 files changed

+44
-161
lines changed

6 files changed

+44
-161
lines changed

.github/workflows/create-release-pr.yaml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,28 @@ jobs:
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3535

36-
# Create new Version
37-
- name: 🗽 New Version
38-
run: yarn run new-version
39-
40-
# Adds the above created version to the output so that we can get it later in the pull request with 'steps.changelog.outputs.version'
41-
- name: 🖋 Set new Version to Output
42-
id: changelog
43-
shell: bash -ex {0}
44-
run: |
45-
version=$(node -p 'require("./lerna.json").version')
46-
echo "::set-output name=version::${version}"
36+
# 🔼 Bump Version
37+
- name: Bump Version
38+
id: next_version
39+
uses: zwaldowski/semver-release-action@v1
40+
with:
41+
bump: patch
42+
prefix: @agile
43+
github_token: ${{ secrets.GITHUB_TOKEN }}
4744

48-
# Create the Pull Request
45+
# Create Release Pull Request
4946
- name: 📤 Create Pull Request
5047
id: create-pull-request
5148
uses: peter-evans/create-pull-request@v3
5249
with:
5350
token: ${{ secrets.GITHUB_TOKEN }}
5451
path: ${{ secrets.GITHUB_PATH }}
55-
commit-message: "Update v${{ steps.changelog.outputs.version }}"
52+
commit-message: "[WIP] New Version"
5653
committer: GitHub <noreply@github.com>
5754
author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
5855
title: "v${{ steps.changelog.outputs.version }}"
5956
body: |
60-
## v${{ steps.changelog.outputs.version }}
57+
## New Version
6158
6259
### Breaking Changes
6360
- [ ] TODO
@@ -68,12 +65,11 @@ jobs:
6865
### Bug Fixes
6966
- [ ] TODO
7067
labels: "release"
71-
branch: "release/${{ steps.changelog.outputs.version }}"
68+
branch: "release/next"
7269

7370
# Print some important Notes
7471
- name: 🏁 Result
7572
run: |
7673
echo "✔️ Finished"
7774
echo "✔️ Pull Request Number - ${{ steps.create-pull-request.outputs.pr_number }}"
7875
echo "✔️ Pull Request URL - ${{ steps.create-pull-request.outputs.pull-request-url }}"
79-
echo "✔️ Version - ${{ steps.changelog.outputs.version }}"

.github/workflows/label-pr.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Label Pull Request
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
labelPR:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 🔰 Label Pull Request
12+
uses: adamzolyak/monorepo-pr-labeler-action@patching
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-changesets.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 0 additions & 103 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: test
1+
name: test-all-packages
22
on:
33
pull_request:
44
branches: ["*"]
55
types: ["opened", "reopened"]
66

77
jobs:
88
publish:
9-
name: Test
9+
name: Test All Packages
1010
runs-on: ubuntu-latest
1111
steps:
1212

@@ -24,6 +24,6 @@ jobs:
2424
- name: ⏳ Install
2525
run: yarn install
2626

27-
# Test All
27+
# Run Tests
2828
- name: 🤔 Test
2929
run: yarn test

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
# Wished Workflow
22

33
- **1** Edit Packages in Branch develop
4-
- **2** Create Issue wich represent the Version increase
5-
- **3** Entter a comment in the before created issue like '/create release [branch]'
4+
- **2** Create Issue which represent the Version increase
5+
- **3** Enter a comment in the before created issue like '/create release [branch]'
66
- **3.1** Increases the Version count in the packages that have updated
7-
- **3.2** Creates new branch from [branch] and creates a Pull Request called after the new Version
7+
- **3.2** Creates a new branch from [branch] and creates a Pull Request called after the new Version
88
- **3.3** Tests the whole Project
99
- **4** Merge the Pull Request into master
10-
- **4.1** Checks if Tag with version exists, if so exit
11-
- **4.2** Creates new Release and Tag called after the version
12-
- **4.3** Puplishes Packages to npm that version has changed compared on the last release
10+
- **4.1** Checks if Tag with a version exists, if so exit
11+
- **4.2** Creates new Releases and Tags called after the version and package that changes
12+
- **4.3** Publishes Packages to npm that version has changed compared on the last release
13+
14+
@agile-ts/core@0.0.1
15+
@agile-ts/multieditor@0.1.8-beta
1316

1417

1518
# Options
@@ -20,11 +23,11 @@
2023
- **2.1** It does list all branches in the cmd and shows which branches have changed
2124
- **2.2** Select the branches whose version has to be updated
2225
- **2.3** It gives you the option of (major, minor, patch) version bumps
23-
- **2.4** Enter a summory
26+
- **2.4** Enter a summary
2427
- **2.5** Confirm selection
2528
- This creates a file in the '.changeset' folder that includes all the changes wished version changes
2629
- **3** Merge the [branch] into the master
27-
- **3.1** Creates new branch based called 'changesets/release'
30+
- **3.1** Creates a new branch based called 'changesets/release'
2831
- **3.2** Updates the version based on the generated file in '.changeset'
2932
- **3.3** Creates pull request back into the master
3033
- **3.4**
@@ -35,4 +38,8 @@ TODO
3538
[1]: https://github.com/changesets/action
3639

3740

41+
#### Resources
42+
https://dev.to/stackdumper/setting-up-ci-for-microservices-in-monorepo-using-github-actions-5do2
43+
https://github.community/t/basic-workflow-structure-for-a-monorepo/17093/5
44+
https://github.com/zladovan/monorepo
3845

0 commit comments

Comments
 (0)