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
28 changes: 11 additions & 17 deletions .github/workflows/minor-release-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
echo "GITHUB_TOKEN=${{ secrets.IQ_ADM_TIM_TOKEN }}" >> $GITHUB_ENV
- name: Setup npm auth
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
Expand All @@ -47,20 +48,13 @@ jobs:
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
- name: PR Comment
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const curr = `v${process.env.CURRENT_VERSION}`;
const body = `Minor release publicado: ${curr}`;
if (!context.issue.number) {
core.warning('Sem issue/PR number detectado para comentar.');
} else {
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body
});
}
env:
GITHUB_TOKEN: ${{ secrets.IQ_ADM_TIM_TOKEN }}
- name: Merge latest into main
run: |
git checkout main
git pull origin main
git merge latest
git push origin main
env:
GITHUB_TOKEN: ${{ secrets.IQ_ADM_TIM_TOKEN }}
22 changes: 3 additions & 19 deletions .github/workflows/patch-release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,8 @@ jobs:
run: yarn install --frozen-lockfile
- name: Build libs
run: yarn build:libs
- name: Publish to NPM
run: lerna publish from-package --yes --no-verify-access
- name: Publish NPM
run: yarn publish:patch
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: PR Comment
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const curr = `v${process.env.CURRENT_VERSION}`;
const body = `Patch release publicado: ${curr}`;
if (!context.issue.number) {
core.warning('Sem issue/PR number detectado para comentar.');
} else {
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body
});
}
GITHUB_TOKEN: ${{ secrets.IQ_ADM_TIM_TOKEN }}
8 changes: 3 additions & 5 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"packages": [
"packages/*"
],
"version": "0.9.9",
"packages": ["packages/*"],
"version": "0.10.2",
"npmClient": "yarn",
"command": {
"publish": {
Expand All @@ -19,4 +17,4 @@
"message": "chore(release): publish %s"
}
}
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"version:patch": "lerna version patch --exact --yes",
"version:minor": "lerna version minor --exact --yes",
"publish:from-package": "lerna publish from-package --yes --no-verify-access",
"publish:canary": "yarn version:prerelease && yarn publish:from-package --dist-tag next",
"publish:canary": "yarn version:prerelease github && yarn publish:from-package --dist-tag next",
"publish:patch": "yarn version:patch && yarn publish:from-package",
"publish:minor": "yarn version:minor && yarn publish:from-package",
"publish:minor": "yarn version:minor --create-release github && yarn publish:from-package",
"prepare": "husky"
},
"devDependencies": {
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.9.9",
"version": "0.10.2",
"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.9.9",
"version": "0.10.2",
"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.9.9",
"version": "0.10.2",
"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.9.9",
"version": "0.10.2",
"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.9.9",
"version": "0.10.2",
"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.9.9",
"version": "0.10.2",
"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.9.9",
"version": "0.10.2",
"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.9.9",
"version": "0.10.2",
"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.9.9",
"version": "0.10.2",
"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.9.9",
"version": "0.10.2",
"description": "> TODO: description",
"author": "iq team",
"homepage": "https://github.com/IQ-tech/firebolt#readme",
Expand Down
Loading