mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
* calculate tag for the release This is based on the name we use in the version e.g.: `3.2.0-beta.2`. If no name can be found in the version, we will default to `latest` * ignore node_modules caching for now
9 lines
210 B
JavaScript
9 lines
210 B
JavaScript
let version = process.env.npm_package_version || require('../package.json').version
|
|
|
|
let match = /\d+\.\d+\.\d+-(.*)\.\d+/g.exec(version)
|
|
if (match) {
|
|
console.log(match[1])
|
|
} else {
|
|
console.log('latest')
|
|
}
|