Skip to content

Commit

Permalink
chore: implement CI + semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
Brenzee committed Oct 31, 2023
1 parent eccda3f commit f0c6f81
Show file tree
Hide file tree
Showing 3 changed files with 3,597 additions and 43 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: CI
on:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-lastest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "12"
- run: yarn install --frozen-lockfile
- run: yarn test
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
18 changes: 16 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
{
"name": "@kiroboio/flow-plugins",
"version": "1.0.0",
"version": "0.0.0-development",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": "[email protected]:kiroboio/ki-flow-plugins.git",
"author": "Brendons Karelis <[email protected]>",
"license": "MIT",
"scripts": {
"commit": "git cz",
"build": "tsc -p tsconfig.build.json",
"script": "ts-node --project tsconfig.json",
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register \"src/**/*.test.ts\""
"test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' mocha -r ts-node/register \"src/**/*.test.ts\"",
"semantic-release": "semantic-release"
},
"release": {
"branches": [
"main"
]
},
"devDependencies": {
"@types/chai": "^4.3.8",
Expand All @@ -19,13 +26,15 @@
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^5.42.1",
"chai": "^4.3.10",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-simple-import-sort": "^8.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"mocha": "^10.2.0",
"prettier": "^2.7.1",
"semantic-release": "^22.0.6",
"ts-node": "^10.9.1",
"typescript": "*"
},
Expand All @@ -36,5 +45,10 @@
"ethers": "^5.7.2",
"lodash": "^4.17.21",
"node-cache": "^5.1.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
Loading

0 comments on commit f0c6f81

Please sign in to comment.