1
1
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:
Jon Rohan 2021-03-25 17:18:04 -07:00
parent ce12bc5cd2
commit 87920e1adc
No known key found for this signature in database
GPG Key ID: B0BBE304A9A0AECB
4 changed files with 0 additions and 5569 deletions

5529
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -1,4 +0,0 @@
module.exports = {
dryRun: true,
plugins: ['./lib/semantic-release-plugin']
}

View File

@ -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()
}
}