diff --git a/.github/workflows/draft.yaml b/.github/workflows/draft.yaml index 35d8a5e..d311789 100644 --- a/.github/workflows/draft.yaml +++ b/.github/workflows/draft.yaml @@ -21,6 +21,15 @@ jobs: steps: - name: "Checkout" uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: "Get Previous Tag" + id: tag + run: | + TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "") + echo "TAG: ${TAG}" + echo "name=${TAG}" >> "${GITHUB_OUTPUT}" - name: "Draft Release Action" id: draft @@ -29,6 +38,8 @@ jobs: semver: patch prerelease: false prefix: v + previous_tag_name: ${{ steps.tag.outputs.name }} + notes_strip_prefix: true - name: "Process Release Draft URL" run: | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 746c8cc..dc97eb3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -79,14 +79,22 @@ jobs: app_id: ${{ vars.APP_CLIENT_ID }} app_private_key: ${{ secrets.APP_PRIVATE_KEY }} + - name: "Create Tracking Tag" + uses: cssnr/update-version-tags-action@v2 + with: + prefix: "" + major: false + minor: false + release: true + - name: "Update Version Tags" id: tags uses: cssnr/update-version-tags-action@v2 with: ref: refs/heads/${{ env.release }} - tag: ${{ env.tag }} - force: true + prefix: "v" release: true + force: true - name: "Update Release Notes" continue-on-error: true @@ -95,6 +103,7 @@ jobs: location: "tail" actions: | tags: ${{ steps.tags.outputs.tags }} + sha: ${{ steps.tags.outputs.sha }} - name: "Package Changelog" continue-on-error: true diff --git a/action.yml b/action.yml index 1134b26..af6c453 100644 --- a/action.yml +++ b/action.yml @@ -1,3 +1,4 @@ +# https://www.schemastore.org/github-action.json name: "Docker Tags" description: "Generate Docker Tags, Labels and Annotations for building Docker images with GitHub Actions." author: "Shane" diff --git a/tsconfig.json b/tsconfig.json index 9c2d543..a94fbd8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,10 +3,10 @@ "compilerOptions": { "outDir": "dist", "rootDir": "src", - "module": "NodeNext", + "module": "ESNext", "target": "ESNext", + "moduleResolution": "bundler", "resolveJsonModule": true, - "removeComments": true, "skipLibCheck": true, "types": ["node"] },