Skip to content

Commit

Permalink
feat(): Upgrade semantic-release & eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
121593 committed Feb 17, 2022
1 parent 666c924 commit 80fe5bf
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ release:
only:
- master
before_script:
- npm install -g semantic-release@">15.8.0 <16.0.0" @semantic-release/gitlab-config @semantic-release/npm
- npm install -g semantic-release debug @semantic-release/commit-analyzer @semantic-release/github @semantic-release/npm @semantic-release/release-notes-generator
script:
- npm run release
52 changes: 48 additions & 4 deletions package-lock.json

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

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
"commitizen": "^4.2.4",
"ejs": "^3.1.6",
"eslint": "^8.9.0",
"eslint-config-standard": "^16.0.3",
"eslint-config-standard": "^17.0.0-1",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-n": "^14.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"esm": "^3.2.25",
Expand All @@ -45,9 +46,6 @@
"license": "ISC",
"main": "src/index.js",
"name": "amazon-url-builder",
"release": {
"extends": "@semantic-release/gitlab-config"
},
"repository": {
"type": "git",
"url": "https://github.com/121593/amazon-url-builder.git"
Expand All @@ -57,7 +55,7 @@
"coverage": "nyc npm test && nyc report --reporter=text-lcov > ./.nyc_output/lcov.info",
"coveralls": "cat ./.nyc_output/lcov.info | coveralls",
"dev": "nodemon example/index.js",
"release": "semantic-release -e @semantic-release/gitlab-config",
"release": "semantic-release",
"test": "ava"
},
"version": "0.1.0"
Expand Down
26 changes: 26 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
if (!process.env.CI) {
const debug = require('debug')
debug.enable('semantic-release:*')
}

module.exports = {
// Test mode
dryRun: !process.env.CI,
ci: !!process.env.CI,

plugins: [
['@semantic-release/commit-analyzer', {
preset: 'angular',
releaseRules: [
{ type: 'docs', scope: 'README', release: 'patch' },
{ type: 'style', release: 'patch' },
{ type: 'ci', release: 'patch' },
{ type: 'build', release: 'patch' },
{ type: 'chore', release: 'patch' }
]
}],
'@semantic-release/release-notes-generator',
'@semantic-release/npm',
'@semantic-release/github'
]
}

0 comments on commit 80fe5bf

Please sign in to comment.