source: frontend/node_modules/tailwindcss/scripts/release-channel.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 488 bytes
Line 
1// Given a version, figure out what the release channel is so that we can publish to the correct
2// channel on npm.
3//
4// E.g.:
5//
6// 1.2.3 -> latest (default)
7// 0.0.0-insiders.ffaa88 -> insiders
8// 4.1.0-alpha.4 -> alpha
9
10let version =
11 process.argv[2] || process.env.npm_package_version || require('../package.json').version
12
13let match = /\d+\.\d+\.\d+-(.*)\.\d+/g.exec(version)
14if (match) {
15 console.log(match[1])
16} else {
17 console.log('latest')
18}
Note: See TracBrowser for help on using the repository browser.