Skip to content

Commit 3b04ad0

Browse files
committed
ci: publish v2 releases under v2-lts tag
1 parent 7e6a675 commit 3b04ad0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ jobs:
4646
name: ${{ github.ref_name }}
4747
draft: false
4848
prerelease: false
49+
make_latest: ${{ !startsWith(github.ref_name, 'v2.') }}
4950

5051
- name: Publish to npm
51-
run: npm publish ./dist/angular-tiptap-editor --access public
52+
run: |
53+
if [[ "${{ github.ref_name }}" =~ ^v2\. ]]; then
54+
echo "Publishing support release under 'v2-lts' tag"
55+
npm publish ./dist/angular-tiptap-editor --access public --tag v2-lts
56+
else
57+
echo "Publishing latest release"
58+
npm publish ./dist/angular-tiptap-editor --access public
59+
fi

0 commit comments

Comments
 (0)