Skip to content

Commit 7c6fa3d

Browse files
committed
ensure we import the correct dependencies
1 parent 7ca6174 commit 7c6fa3d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/release-channel.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
let path = require('path')
2+
let { execSync } = require('child_process')
3+
14
// Given a version, figure out what the release channel is so that we can publish to the correct
25
// channel on npm.
36
//
@@ -19,6 +22,8 @@ let version = require(path.resolve(pkgPath, 'package.json')).version
1922

2023
let match = /\d+\.\d+\.\d+-(.*)\.\d+/g.exec(version)
2124
if (match) {
25+
// We want to release alpha to the next channel because it will be the next version
26+
if (match[1] === 'alpha') match[1] = 'next'
2227
console.log(match[1])
2328
} else {
2429
console.log('latest')

0 commit comments

Comments
 (0)