mirror of
https://github.com/pdfme/pdfme.git
synced 2026-04-19 21:49:03 -04:00
16 lines
422 B
Bash
Executable File
16 lines
422 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Get the tag from the GITHUB_REF environment variable
|
|
VERSION=${GITHUB_REF#refs/tags/}
|
|
|
|
# Determine the NPM tag based on the GitHub tag
|
|
if [[ $VERSION == *"-alpha"* ]]; then
|
|
echo "NPM_TAG=next" >> $GITHUB_ENV
|
|
elif [[ $VERSION == *"-beta"* ]]; then
|
|
echo "NPM_TAG=next" >> $GITHUB_ENV
|
|
elif [[ $VERSION == *"-rc"* ]]; then
|
|
echo "NPM_TAG=next" >> $GITHUB_ENV
|
|
else
|
|
echo "NPM_TAG=latest" >> $GITHUB_ENV
|
|
fi
|