mirror of
https://github.com/primer/css.git
synced 2024-12-23 22:24:11 +03:00
Removing changelog script
This commit is contained in:
parent
ce12bc5cd2
commit
87920e1adc
5529
package-lock.json
generated
5529
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -74,9 +74,7 @@
|
||||
"postcss-scss": "2.1.1",
|
||||
"postcss-value-parser": "^4.1.0",
|
||||
"prop-types": "^15.6.2",
|
||||
"semantic-release": "^15.13.27",
|
||||
"semver": "5.7.1",
|
||||
"stream-buffers": "^3.0.2",
|
||||
"style-loader": "^0.18.2",
|
||||
"styled-components": "4.1.2",
|
||||
"stylelint": "^10.1.0",
|
||||
|
@ -1,4 +0,0 @@
|
||||
module.exports = {
|
||||
dryRun: true,
|
||||
plugins: ['./lib/semantic-release-plugin']
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
#!/usr/bin/env node
|
||||
const semanticRelease = require('semantic-release')
|
||||
const {spawnSync} = require('child_process')
|
||||
const {WritableStreamBuffer} = require('stream-buffers')
|
||||
|
||||
const branch = getBranch()
|
||||
const options = {branch, dryRun: true}
|
||||
|
||||
console.warn(`Running semantic-release with options: ${JSON.stringify(options)}...`)
|
||||
|
||||
semanticRelease(options, {
|
||||
stdout: new WritableStreamBuffer(),
|
||||
stderr: new WritableStreamBuffer()
|
||||
})
|
||||
.then(result => {
|
||||
const {
|
||||
nextRelease: {version, notes}
|
||||
} = result
|
||||
console.warn(`Release ${version} notes:\n`)
|
||||
console.log(notes)
|
||||
})
|
||||
.catch(error => {
|
||||
console.error(error.message)
|
||||
process.exitCode = 1
|
||||
})
|
||||
|
||||
function getBranch() {
|
||||
const {GITHUB_REF} = process.env
|
||||
if (GITHUB_REF) {
|
||||
return GITHUB_REF.replace(/^refs\/heads\//, '')
|
||||
} else {
|
||||
return spawnSync('git', ['symbolic-ref', '--short', 'HEAD'], {encoding: 'utf8'}).stdout.trim()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user