Skip to content

Commit

Permalink
feat: add shared semantic release config
Browse files Browse the repository at this point in the history
chore: update build process
  • Loading branch information
milosbugarinovic committed May 8, 2024
1 parent 4ead66e commit a281243
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 58 deletions.
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
target-branch: "dependabot-update"
assignees:
- "milosbugarinovic"
commit-message:
Expand Down
32 changes: 32 additions & 0 deletions .semaphore/bump-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: v1.0
name: Test
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004

blocks:

- name: Bump Version
task:
secrets:
- name: bc-git-secret
- name: bc-npm-secret
jobs:
- name: Build
commands:
- cache restore bc-msh-entity-docker-image-$SEMAPHORE_GIT_SHA
- docker load -i bc-msh-entity.tar
- touch version.txt
- sudo chown -R packer:packer version.txt
- docker run --rm -v ./version.txt:/usr/app/version.txt -e GH_TOKEN -e NPM_TOKEN -e GH_USER -e CI bc-msh-entity npm run npm-semantic-release
- cat version.txt
- cache store bc-msh-entity-version-$SEMAPHORE_GIT_SHA version.txt
skip:
when: branch != 'main'

promotions:
- name: Alpha Deploy
pipeline_file: alpha.yml
- name: Production Deploy
pipeline_file: prod.yml
24 changes: 2 additions & 22 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,6 @@ blocks:
- docker load -i bc-msh-entity.tar
- docker run --rm -e CODECOV_TOKEN bc-msh-entity sh -c 'npm run test-coverage-unit && npm run test-coverage-unit-publish'

- name: Bump Version
task:
secrets:
- name: bc-git-secret
- name: bc-npm-secret
jobs:
- name: Build
commands:
- cache restore bc-msh-entity-docker-image-$SEMAPHORE_GIT_SHA
- docker load -i bc-msh-entity.tar
- touch version.txt
- sudo chown -R packer:packer version.txt
- docker run --rm -v ./version.txt:/usr/app/version.txt -e GH_TOKEN -e NPM_TOKEN -e GH_USER -e CI bc-msh-entity npm run npm-semantic-release
- cat version.txt
- cache store bc-msh-entity-version-$SEMAPHORE_GIT_SHA version.txt
skip:
when: branch != 'main'

promotions:
- name: Alpha Deploy
pipeline_file: alpha.yml
- name: Production Deploy
pipeline_file: prod.yml
- name: Bump Version
pipeline_file: bump-version.yml
41 changes: 17 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 4 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
}
},
"dependencies": {
"@beecode/msh-config": "1.0.0",
"@beecode/msh-util": "2.0.7",
"@beecode/msh-config": "1.1.0",
"@beecode/msh-util": "2.0.8",
"rxjs": "7.8.1"
},
"devDependencies": {
Expand All @@ -124,13 +124,7 @@
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@commitlint/prompt": "19.3.0",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/commit-analyzer": "12.0.0",
"@semantic-release/exec": "6.0.3",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "10.0.3",
"@semantic-release/release-notes-generator": "13.0.0",
"@types/node": "20.12.8",
"@types/node": "20.12.10",
"@vitest/coverage-v8": "1.6.0",
"commitizen": "4.3.0",
"concurrently": "8.2.2",
Expand All @@ -140,14 +134,13 @@
"markdown-toc": "1.2.0",
"prettier": "3.2.5",
"rimraf": "5.0.5",
"semantic-release": "23.0.8",
"source-map-support": "0.5.21",
"ts-cleaner": "1.0.5",
"ts-node": "10.9.2",
"tsc-alias": "1.8.8",
"tsc-watch": "6.2.0",
"typedoc": "0.25.13",
"typedoc-plugin-markdown": "4.0.0",
"typedoc-plugin-markdown": "4.0.1",
"typescript": "5.4.5",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0"
Expand Down

0 comments on commit a281243

Please sign in to comment.