Skip to content
Merged
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
15 changes: 15 additions & 0 deletions .github/workflows/canary-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@ jobs:
name: Canary publish (tests + publish next)
runs-on: ubuntu-latest
steps:
- name: Check for [skip] in PR title
if: contains(github.event.pull_request.title, '[skip]')
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const prNumber = context.payload.pull_request.number;
const body = 'Workflow aborted due to [skip] in the PR title.';
await github.rest.issues.createComment({
issue_number: prNumber,
owner: context.repo.owner,
repo: context.repo.repo,
body,
});
core.setFailed('Workflow aborted due to [skip] in the PR title.');
- name: Checkout
uses: actions/checkout@v3
with:
Expand Down
28 changes: 16 additions & 12 deletions .github/workflows/minor-release-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,24 @@ jobs:
run: yarn install --frozen-lockfile
- name: Build libs
run: yarn build:libs
- name: Minor version & publish
id: minor
- name: Increment ephemeral version
run: |
yarn publish:minor
VERSION=$(node -p 'require("./lerna.json").version')
echo "CURRENT_VERSION=$VERSION" >> $GITHUB_ENV
echo "PREVIOUS_TAG=$(git describe --tags --abbrev=0 --exclude $VERSION 2>/dev/null || echo '')" >> $GITHUB_ENV
npx lerna version patch --yes --no-push
- name: Publish NPM
run: yarn publish:from-package
env:
GITHUB_TOKEN: ${{ secrets.IQ_ADM_TIM_TOKEN }}
- name: Merge latest into main
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Revert ephemeral commit
run: |
git reset --hard HEAD~1
- name: Create branch and PR to main
run: |
git checkout main
git pull origin main
git merge latest
git push origin main
BRANCH_NAME="update-patch-$(date +%s)"
git checkout -b $BRANCH_NAME
npx lerna version patch --yes --no-push
git add .
git commit -m "chore: bump patch version"
git push origin $BRANCH_NAME
gh pr create --title "[skip] chore: bump patch version" --body "This PR bumps the patch version." --base main --head $BRANCH_NAME
env:
GITHUB_TOKEN: ${{ secrets.IQ_ADM_TIM_TOKEN }}
18 changes: 16 additions & 2 deletions .github/workflows/patch-release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@ jobs:
runs-on: ubuntu-latest
name: Patch publish
steps:
- name: Check for [skip] in PR title
if: contains(github.event.pull_request.title, '[skip]')
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const prNumber = context.payload.pull_request.number;
const body = 'Workflow aborted due to [skip] in the PR title.';
await github.rest.issues.createComment({
issue_number: prNumber,
owner: context.repo.owner,
repo: context.repo.repo,
body,
});
core.setFailed('Workflow aborted due to [skip] in the PR title.');
- name: Checkout
uses: actions/checkout@v3
with:
Expand All @@ -41,7 +56,6 @@ jobs:
- name: Build libs
run: yarn build:libs
- name: Publish NPM
run: yarn publish:patch
run: yarn publish:from-package
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.IQ_ADM_TIM_TOKEN }}
8 changes: 5 additions & 3 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"packages": ["packages/*"],
"version": "0.10.2",
"packages": [
"packages/*"
],
"version": "0.10.3",
"npmClient": "yarn",
"command": {
"publish": {
Expand All @@ -17,4 +19,4 @@
"message": "chore(release): publish %s"
}
}
}
}
2 changes: 1 addition & 1 deletion packages/atlas-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iq-firebolt/atlas-theme",
"version": "0.9.9",
"version": "0.10.3",
"description": "> ATLAS Theme",
"author": "iq team",
"homepage": "https://github.com/IQ-tech/firebolt#readme",
Expand Down
2 changes: 1 addition & 1 deletion packages/aurora-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iq-firebolt/aurora-theme",
"version": "0.10.2",
"version": "0.10.3",
"description": "> AURORA Theme",
"author": "iq team",
"homepage": "https://github.com/IQ-tech/firebolt#readme",
Expand Down
2 changes: 1 addition & 1 deletion packages/blueberry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iq-firebolt/blueberry-theme",
"version": "0.10.2",
"version": "0.10.3",
"description": "> TODO: description",
"author": "iq team",
"homepage": "https://github.com/IQ-tech/firebolt#readme",
Expand Down
2 changes: 1 addition & 1 deletion packages/br-addons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iq-firebolt/br-addons",
"version": "0.10.2",
"version": "0.10.3",
"description": "> TODO: description",
"author": "iq team",
"homepage": "https://github.com/IQ-tech/firebolt#readme",
Expand Down
2 changes: 1 addition & 1 deletion packages/client-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iq-firebolt/client-core",
"version": "0.10.2",
"version": "0.10.3",
"description": "> TODO: description",
"author": "iq team",
"homepage": "https://github.com/IQ-tech/firebolt#readme",
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iq-firebolt/client",
"version": "0.10.2",
"version": "0.10.3",
"description": "> TODO: description",
"author": "iq team",
"homepage": "https://github.com/IQ-tech/firebolt#readme",
Expand Down
2 changes: 1 addition & 1 deletion packages/entities/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iq-firebolt/entities",
"version": "0.10.2",
"version": "0.10.3",
"description": "> TODO: description",
"author": "iq team",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/json-schema/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iq-firebolt/json-schema",
"version": "0.10.2",
"version": "0.10.3",
"description": "json schema lib",
"author": "iq team",
"homepage": "https://github.com/IQ-tech/firebolt#readme",
Expand Down
2 changes: 1 addition & 1 deletion packages/lab/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iq-firebolt/lab",
"version": "0.10.2",
"version": "0.10.3",
"private": true,
"license": "Apache-2.0",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/material-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iq-firebolt/material-theme",
"version": "0.10.2",
"version": "0.10.3",
"description": "> TODO: description",
"author": "iq team",
"homepage": "https://github.com/IQ-tech/firebolt#readme",
Expand Down
2 changes: 1 addition & 1 deletion packages/validators/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iq-firebolt/validators",
"version": "0.10.2",
"version": "0.10.3",
"description": "> TODO: description",
"author": "iq team",
"homepage": "https://github.com/IQ-tech/firebolt#readme",
Expand Down
Loading