tide-design-system 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: 'Publish Release to Github'
|
|
2
|
+
|
|
3
|
+
permissions:
|
|
4
|
+
id-token: write
|
|
5
|
+
contents: write
|
|
6
|
+
issues: read
|
|
7
|
+
pull-requests: read
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
push:
|
|
11
|
+
tags:
|
|
12
|
+
# Will run on any tag push, can be updated with Regex if needed
|
|
13
|
+
- '**'
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
publish_release:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
env:
|
|
19
|
+
GH_TOKEN: ${{ github.token }}
|
|
20
|
+
tag: ${{ github.ref_name }}
|
|
21
|
+
steps:
|
|
22
|
+
- name: Checkout code
|
|
23
|
+
uses: actions/checkout@v4
|
|
24
|
+
|
|
25
|
+
- name: Get PR titles from milestone for release notes
|
|
26
|
+
id: get-notes
|
|
27
|
+
run: |
|
|
28
|
+
echo "## What's New" > notes.md
|
|
29
|
+
release_notes=$(gh pr list --search "milestone:${{ env.tag }}" --state all --json title,author,number \
|
|
30
|
+
| jq -r '.[] | "- \(.title) by @\(.author.login) in #\(.number)"')
|
|
31
|
+
printf "%s\n" "${release_notes}" >> notes.md
|
|
32
|
+
|
|
33
|
+
- name: Create release
|
|
34
|
+
run: |
|
|
35
|
+
gh release create ${{ env.tag }} \
|
|
36
|
+
--notes-file notes.md \
|
|
37
|
+
--verify-tag \
|
|
38
|
+
--title ${{ env.tag }}
|
package/package.json
CHANGED