Skip to content

Commit

Permalink
build: add semantic-release with circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnz committed Oct 26, 2021
1 parent 3997ccf commit 0e460d3
Show file tree
Hide file tree
Showing 3 changed files with 1,883 additions and 48 deletions.
19 changes: 19 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
jobs:
build:
docker:
- image: 'cimg/node:current'
steps:
- checkout
- run:
name: pnpm
command: curl -fsSL https://get.pnpm.io/install.sh | bash -
- run:
name: install
command: /home/circleci/.local/share/pnpm/pnpm install -D
- run:
name: build
command: /home/circleci/.local/share/pnpm/pnpm build
- run:
name: release
command: /home/circleci/.local/share/pnpm/pnpm run semantic-release || true
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ranpass",
"version": "0.0.0",
"version": "0.0.0-development",
"description": "",
"main": "dist/index.js",
"bin": {
Expand All @@ -11,7 +11,8 @@
"prestart": "npx only-allow pnpm",
"start": "nodemon src/index.ts",
"clean": "rm -rf ./dist",
"build": "pnpm clean && tsc"
"build": "pnpm clean && tsc",
"semantic-release": "semantic-release"
},
"keywords": [],
"author": {
Expand All @@ -23,7 +24,12 @@
"@types/node": "^16.7.6",
"nodemon": "^2.0.14",
"prettier": "2.3.2",
"semantic-release": "^18.0.0",
"ts-node": "^10.3.0",
"typescript": "^4.4.2"
},
"repository": {
"type": "git",
"url": "https://github.com/sunnz/ranpass.git"
}
}
Loading

0 comments on commit 0e460d3

Please sign in to comment.