1
- name : Build Standalone CLI
1
+ name : Prepare Release
2
2
3
3
on :
4
4
workflow_dispatch :
@@ -13,10 +13,16 @@ permissions:
13
13
contents : read
14
14
15
15
jobs :
16
- build_cli :
16
+ build :
17
17
permissions :
18
18
contents : write # for softprops/action-gh-release to create GitHub release
19
+
19
20
runs-on : macos-11
21
+
22
+ strategy :
23
+ matrix :
24
+ node-version : [16]
25
+
20
26
steps :
21
27
- uses : actions/checkout@v3
22
28
@@ -25,12 +31,19 @@ jobs:
25
31
- name : Resolve version
26
32
id : vars
27
33
run : |
28
- echo "tag_name =$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
34
+ echo "TAG_NAME =$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
29
35
30
- - name : Use Node.js 16
36
+ - name : Get release notes
37
+ run : |
38
+ RELEASE_NOTES=$(npm run release-notes --silent)
39
+ echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
40
+ echo "$RELEASE_NOTES" >> $GITHUB_ENV
41
+ echo "EOF" >> $GITHUB_ENV
42
+
43
+ - name : Use Node.js ${{ matrix.node-version }}
31
44
uses : actions/setup-node@v3
32
45
with :
33
- node-version : ' 16 '
46
+ node-version : ${{ matrix.node-version }}
34
47
registry-url : ' https://registry.npmjs.org'
35
48
36
49
- name : Build tailwindcss
@@ -52,14 +65,16 @@ jobs:
52
65
uses : softprops/action-gh-release@v1
53
66
with :
54
67
draft : true
55
- tag_name : ${{ env.tag_name }}
68
+ tag_name : ${{ env.TAG_NAME }}
56
69
body : |
57
- * [Linux (arm64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ env.tag_name }}/tailwindcss-linux-arm64)
58
- * [Linux (armv7)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ env.tag_name }}/tailwindcss-linux-armv7)
59
- * [Linux (x64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ env.tag_name }}/tailwindcss-linux-x64)
60
- * [macOS (arm64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ env.tag_name }}/tailwindcss-macos-arm64)
61
- * [macOS (x64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ env.tag_name }}/tailwindcss-macos-x64)
62
- * [Windows (x64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ env.tag_name }}/tailwindcss-windows-x64.exe)
70
+ ${{ env.RELEASE_NOTES }}
71
+
72
+ * [Linux (arm64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ env.TAG_NAME }}/tailwindcss-linux-arm64)
73
+ * [Linux (armv7)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ env.TAG_NAME }}/tailwindcss-linux-armv7)
74
+ * [Linux (x64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ env.TAG_NAME }}/tailwindcss-linux-x64)
75
+ * [macOS (arm64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ env.TAG_NAME }}/tailwindcss-macos-arm64)
76
+ * [macOS (x64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ env.TAG_NAME }}/tailwindcss-macos-x64)
77
+ * [Windows (x64)](https://github.com/tailwindlabs/tailwindcss/releases/download/${{ env.TAG_NAME }}/tailwindcss-windows-x64.exe)
63
78
files : |
64
79
standalone-cli/dist/tailwindcss-linux-arm64
65
80
standalone-cli/dist/tailwindcss-linux-armv7
0 commit comments