Skip to content

Commit

Permalink
ensure we import the correct dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Jan 8, 2024
1 parent 7ca6174 commit 7c6fa3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/release-channel.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
let path = require('path')
let { execSync } = require('child_process')

// Given a version, figure out what the release channel is so that we can publish to the correct
// channel on npm.
//
Expand All @@ -19,6 +22,8 @@ let version = require(path.resolve(pkgPath, 'package.json')).version

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

0 comments on commit 7c6fa3d

Please sign in to comment.