diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 28c0db4..f421f2f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,6 +12,12 @@ jobs: - name: Checkout code uses: actions/checkout@v3 + - name: Get the latest tag or default + id: git_tag + run: | + TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0") + echo "TAG=${TAG}" >> $GITHUB_ENV + - name: Set up Node.js uses: actions/setup-node@v3 with: