Skip to content

Commit 1ba157e

Browse files
committed
chore: fixing semantic-release
1 parent f84aef3 commit 1ba157e

File tree

4 files changed

+3915
-134
lines changed

4 files changed

+3915
-134
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ jobs:
4141
- run:
4242
name: Install dependencies
4343
command: |
44-
yarn global add @oclif/semantic-release@3 semantic-release@15
44+
yarn global add semantic-release@15
4545
yarn --frozen-lockfile
4646
- run:
4747
name: Cutting release
4848
command: |
4949
export PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH
5050
export GH_TOKEN=$(./scripts/github_token.js 290530)
5151
git remote set-url origin "https://x-access-token:[email protected]/heroku/typescript-api-schema.git"
52-
semantic-release -e @oclif/semantic-release
52+
semantic-release
5353
- save_cache:
5454
key: v2-yarn-{{checksum ".circleci/config.yml"}}-{{checksum "yarn.lock"}}
5555
paths:

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
"bugs": "https://github.com/heroku/typescript-api-schema/issues",
66
"devDependencies": {
77
"@oclif/tslint": "^2.0.0",
8+
"@semantic-release/changelog": "^3.0.0",
9+
"@semantic-release/git": "^7.0.1",
10+
"@semantic-release/npm": "^5.0.2",
811
"http-call": "^5.2.0",
912
"json-schema-to-typescript": "^5.5.0",
1013
"jsonwebtoken": "^8.3.0",
14+
"semantic-release": "^15.9.8",
1115
"tslint": "^5.11.0",
1216
"typescript": "^3.0.1"
1317
},

release.config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
verifyConditions: [
3+
'@semantic-release/changelog',
4+
'@semantic-release/npm',
5+
'@semantic-release/git',
6+
// '@semantic-release/github',
7+
],
8+
prepare: [
9+
'@semantic-release/changelog',
10+
'@semantic-release/npm',
11+
{
12+
path: '@semantic-release/git',
13+
assets: ['package.json', 'CHANGELOG.md', 'README.md', 'docs'],
14+
},
15+
],
16+
publish: [
17+
'@semantic-release/npm',
18+
// '@semantic-release/github',
19+
],
20+
}

0 commit comments

Comments
 (0)