Skip to content

Commit

Permalink
chore(release): Setup semantic-release (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion committed Jan 8, 2023
1 parent 92de4c9 commit 5295a7e
Show file tree
Hide file tree
Showing 4 changed files with 3,135 additions and 179 deletions.
22 changes: 22 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,32 @@ jobs:
name: Test
command: yarn test --forbid-only

release:
working_directory: ~/repos/ts-cssvars
executor: basic

steps:
- bootstrap

- run:
name: Build
command: yarn build

- run:
name: Release
command: yarn release

workflows:
main:
jobs:
- build:
matrix:
parameters:
nodejs: ["16", "17", "18", "19"]

- release:
requires:
- build
filters:
branches:
only: release
4 changes: 4 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://json.schemastore.org/semantic-release",
"branches": ["release"]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"compile": "tsc",
"docs": "typedoc",
"lint": "eslint . --report-unused-disable-directives",
"release": "semantic-release",
"test": "NODE_ENV=test mocha \"test/**/*.test.ts\""
},
"devDependencies": {
Expand All @@ -46,6 +47,7 @@
"eslint-plugin-jsdoc": "^39.6.4",
"expect-type": "^0.15.0",
"mocha": "^10.2.0",
"semantic-release": "^20.0.2",
"ts-node": "^10.9.1",
"typedoc": "^0.23.24",
"typedoc-plugin-markdown": "^3.14.0",
Expand Down
Loading

0 comments on commit 5295a7e

Please sign in to comment.