Skip to content

Commit

Permalink
👷 Build >> Release deactivated right now.
Browse files Browse the repository at this point in the history
  • Loading branch information
borsTiHD committed Jun 13, 2021
1 parent 8225872 commit 30736fe
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .release-it-ESM.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export default {
git: {
commitMessage: 'chore: 🚀 release v${version}',
requireBranch: 'main', // Stopps if your current branch not match
tag: true,
tagName: 'v${version}',
tagAnnotation: 'Release v${version}',
},
github: {
release: true,
releaseName: 'v${version}',
assets: ['build/*.tar.gz']
}
}
2 changes: 1 addition & 1 deletion .release-it.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
module.exports = {
git: {
commitMessage: 'chore: 🚀 release v${version}',
requireBranch: 'main', // Stopps if your current branch not match
Expand Down
8 changes: 6 additions & 2 deletions src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import archiver from 'archiver'
import webpack from 'webpack'
import NuxtApp from 'nuxt'
import dotenv from 'dotenv'
import release from 'release-it'
// import release from 'release-it'
import minimist from 'minimist'
import webpackConfig from '../webpack.config.js'
import releaseItConfig from '../.release-it.js'
// import releaseItConfig from '../.release-it.js'
import nuxtConfig from './client/nuxt.config.js'
import colors from './colors.js'

Expand Down Expand Up @@ -176,12 +176,16 @@ async function archiveProject() {
// Releasing to GitHub
async function releaseHelper() {
if ('release' in argv && argv.release === 'true') {
/*
// Releasing build
console.log(`${colors.FgGreen}%s${colors.Reset}`, '(✔) RELEASING NEW VERSION')
const options = releaseItConfig
return release(options).then((output) => {
console.log(output) // { version, latestVersion, name, changelog }
})
*/

console.log(`${colors.FgYellow}%s${colors.Reset}`, '(⚠) RELEASING NOT SUPPORTED RIGHT NOW - USE "~release-it" INSTEAD')
}

// If no release has been specified, don't attempt to upload
Expand Down

0 comments on commit 30736fe

Please sign in to comment.