Skip to content

Commit

Permalink
🚧 (release): Added semantic release setup + test in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
valpinkman committed Feb 15, 2024
1 parent 6ac3072 commit 565aec6
Show file tree
Hide file tree
Showing 13 changed files with 62 additions and 65 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "release"
on:
push:
branches:
- feature/dsdk-66-changelog

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./actions/setup-toolchain-composite
- name: setup
run: |
pnpm i
pnpm build
- name: release
run: pnpm release
env:
GITHUB_TOKEN: ${{ github.token }}
# NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"release": "pnpm turbo run release --log-order=grouped"
},
"devDependencies": {
"@semantic-release/npm": "^11.0.2",
"@types/jest": "^29.5.11",
"@types/node": "^20.10.6",
"eslint": "^8.56.0",
Expand Down
16 changes: 0 additions & 16 deletions packages/core/.releaserc

This file was deleted.

3 changes: 3 additions & 0 deletions packages/core/release.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const config = require("../../release.config.cjs");

module.exports = config;
16 changes: 0 additions & 16 deletions packages/signer/.releaserc

This file was deleted.

3 changes: 3 additions & 0 deletions packages/signer/release.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const config = require("../../release.config.cjs");

module.exports = config;
16 changes: 0 additions & 16 deletions packages/trusted-apps/.releaserc

This file was deleted.

3 changes: 3 additions & 0 deletions packages/trusted-apps/release.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const config = require("../../release.config.cjs");

module.exports = config;
16 changes: 0 additions & 16 deletions packages/ui/.releaserc

This file was deleted.

3 changes: 3 additions & 0 deletions packages/ui/release.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const config = require("../../release.config.cjs");

module.exports = config;
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

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

24 changes: 24 additions & 0 deletions release.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* @type {import('semantic-release').GlobalConfig}
*/
module.exports = {
branches: [
{
name: "main",
},
{
name: "feature/dsdk-66-changelog",
channel: "channel-wip",
prerelease: "wip",
},
],
extends: ["semantic-release-monorepo", "semantic-release-config-gitmoji"],
plugins: [
[
"@semantic-release/npm",
{
npmPublish: false,
},
],
],
};
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependsOn": ["build", "^typecheck"]
},
"release": {
"dependsOn": ["^release"]
"dependsOn": ["build", "^release"]
}
}
}

0 comments on commit 565aec6

Please sign in to comment.