Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/publish-mrc-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ permissions:
checks: write
repository-projects: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
merge:
name: generate storybook and coverage report
Expand Down
53 changes: 36 additions & 17 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ permissions:
statuses: write
checks: write
repository-projects: read


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
chromatic-deployment:
name: "Deploy Storybook to Chromatic"
Expand Down Expand Up @@ -119,23 +123,38 @@ jobs:
uses: "actions/checkout@v4"
with:
ref: ${{ github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0

- name: "cat package.json"
run: cat ./package.json
- name: Setup Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"

- name: "Automated Version Bump"
uses: "phips28/gh-action-bump-version@master"
with:
minor-wording: "solaceminor,SolaceMinor,SOLACEMINOR"
major-wording: "solacemajor,SolaceMajor,SOLACEMAJOR"
patch-wording: "solacepatch,SolacePatch,SOLACEPATCH"
tag-prefix: ""
commit-message: "CI: bumps version to {{version}} [skip ci]" # Add skip ci tag
- name: Install standard-version
run: npm install -g standard-version

- name: Bump version
run: |
npx standard-version

- name: Push changes
env:
#Required for version bumping and by-passing branch protection
GITHUB_TOKEN: ${{ secrets.PACKAGES_ADMIN_TOKEN }}
- name: "cat package.json"
run: cat ./package.json
COMMIT_KEY: ${{ secrets.PACKAGES_ADMIN_TOKEN }}
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
# Remove default token (read-only)
git config --unset http.https://github.com/.extraheader
# Setup ssh access
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${COMMIT_KEY}"
git config --add [email protected]:.insteadof https://github.com/

# Pull latest changes before pushing
git pull --rebase origin main

# Push with tags
git push --follow-tags origin



6 changes: 5 additions & 1 deletion .github/workflows/release-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ permissions:
statuses: write
checks: write
repository-projects: read


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
Expand Down
56 changes: 56 additions & 0 deletions .versionrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"types": [
{
"type": "solacemajor",
"section": "Major Changes",
"hidden": false
},
{
"type": "SolaceMajor",
"section": "Major Changes",
"hidden": false
},
{
"type": "SOLACEMAJOR",
"section": "Major Changes",
"hidden": false
},
{
"type": "solaceminor",
"section": "Minor Changes",
"hidden": false
},
{
"type": "SolaceMinor",
"section": "Minor Changes",
"hidden": false
},
{
"type": "SOLACEMINOR",
"section": "Minor Changes",
"hidden": false
},
{
"type": "solacepatch",
"section": "Patch Changes",
"hidden": false
},
{
"type": "SolacePatch",
"section": "Patch Changes",
"hidden": false
},
{
"type": "SOLACEPATCH",
"section": "Patch Changes",
"hidden": false
}
],
"commitAll": true,
"skip": {
"tag": true
},
"scripts": {
"postbump": "git add . && git commit -m 'chore(release): %s [skip ci]'"
}
}