Skip to content

Commit

Permalink
Hotfix demo
Browse files Browse the repository at this point in the history
  • Loading branch information
varadarajan-tw committed Nov 1, 2024
1 parent 1f3ace8 commit 5a8febe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
push:
branches:
- main
- release
- hotfix/*

jobs:
build-and-publish:
Expand Down Expand Up @@ -48,9 +48,9 @@ jobs:
npm set '//registry.npmjs.org/:_authToken' ${{ secrets.NPM_PUBLISH_TOKEN }}
npm whoami
- name: Publish
run: |
yarn lerna publish from-package --yes --allowBranch=main --loglevel=verbose --dist-tag latest
# - name: Publish
# run: |
# yarn lerna publish from-package --yes --allowBranch=main --loglevel=verbose --dist-tag latest

release:
needs: build-and-publish # comment when testing locally with https://github.com/nektos/act
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/version-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ on:
description: 'Base branch to create PR to'
required: true
default: 'main'
type: choice
options:
- main
- release
run_id:
description: 'Unique identifier for the run'
required: false
Expand Down Expand Up @@ -67,7 +63,13 @@ jobs:
run: NODE_ENV=production yarn build

- name: Version Packages
run: yarn lerna version minor --yes --allow-branch ${{ github.event.inputs.branch }} --no-git-tag-version --no-commit-hooks --no-private
run: |
# minor version bump for main branch and patch for hotfixes
if [ "${{ github.event.inputs.base_branch }}" == "main" ]; then
yarn lerna version minor --yes --allow-branch ${{ github.event.inputs.branch }} --no-git-tag-version --no-commit-hooks --no-private
else
yarn lerna version patch --yes --allow-branch ${{ github.event.inputs.branch }} --no-git-tag-version --no-commit-hooks --no-private
fi
- name: Commit and push
id: commit_and_push
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const action: ActionDefinition<Settings, Payload> = {
if (syncMode === 'add' || syncMode === 'update') {
return sendTrackEvent(request, settings, payload, syncMode)
}
throw new IntegrationError('syncMode must be "add" or "update"', 'Invalid syncMode', 400)
throw new IntegrationError('syncMode should be "add" or "update"', 'Invalid syncMode', 400)
},
performBatch: (request, { settings, payload, syncMode }) => {
if (syncMode === 'add' || syncMode === 'update') {
Expand Down

0 comments on commit 5a8febe

Please sign in to comment.