Skip to content

Commit

Permalink
add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Nordquist committed May 10, 2024
1 parent cc9cc41 commit b9a5a5f
Show file tree
Hide file tree
Showing 4 changed files with 2,462 additions and 40 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- master
- alpha
- beta

concurrency:
group: ${{ github.ref }}
Expand All @@ -30,6 +32,9 @@ jobs:
node-version: 18
- run: npm install -g yarn
- run: yarn
- run: npx semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn build
- run: yarn prepare-release
- run: yarn package ${{ matrix.build.task }}
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"package": "ts-node package.ts",
"ui-test": "./scripts/uiTests.sh",
"upload-video-artifacts": "./scripts/uploadVideoAsset.ts ui-test.mp4 ui-test.gif",
"package-with-docker": "./scripts/package-with-docker.sh"
"package-with-docker": "./scripts/package-with-docker.sh",
"updateVersion": "semantic-release"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -78,6 +79,9 @@
"@babel/runtime": "^7.17.2",
"@cspell/dict-typescript": "^3.1.2",
"@electron/notarize": "^2.3.0",
"@semantic-release/commit-analyzer": "^12.0.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^12.0.1",
"@types/chai": "^4.1.7",
"@types/fs-extra": "8",
"@types/lowdb": "^1.0.6",
Expand All @@ -100,6 +104,8 @@
"playwright": "^1.43.0",
"prettier": "^3.2.5",
"redux-thunk": "^2.3.0",
"semantic-release": "^23.0.8",
"semantic-release-export-data": "^1.0.1",
"source-map-support": "^0.5.9",
"ts-node": "^10.9.2",
"tslint": "^6.1.3",
Expand All @@ -125,4 +131,4 @@
"uuid": "^8.3.2",
"yarn-run-all": "^3.1.1"
}
}
}
20 changes: 20 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
branches: ['master', { name: 'beta', prerelease: true }, { name: 'alpha', prerelease: true }],
plugins: [
'@semantic-release/commit-analyzer',
'semantic-release-export-data',
'@semantic-release/changelog',
[
'@semantic-release/npm',
{
npmPublish: false,
},
],
[
'@semantic-release/git',
{
assets: ['package.json', 'yarn.lock'],
},
],
],
}
Loading

0 comments on commit b9a5a5f

Please sign in to comment.