File tree Expand file tree Collapse file tree 7 files changed +46
-64
lines changed Expand file tree Collapse file tree 7 files changed +46
-64
lines changed Original file line number Diff line number Diff line change 9
9
permissions :
10
10
contents : read
11
11
12
+ env :
13
+ CI : true
14
+
12
15
jobs :
13
16
test :
14
17
runs-on : ubuntu-latest
47
50
- name : Install dependencies
48
51
# if: steps.cache-tailwindcss.outputs.cache-hit != 'true'
49
52
run : npm install
50
- env :
51
- CI : true
52
53
53
54
- name : Build Tailwind CSS
54
55
run : npm run prepublishOnly
65
66
- name : Install shared dependencies
66
67
if : steps.cache-integrations.outputs.cache-hit != 'true'
67
68
run : npm run install:integrations
68
- env :
69
- CI : true
70
69
71
70
- name : Test ${{ matrix.integration }}
72
71
run : npm test --prefix ./integrations/${{ matrix.integration }}
Original file line number Diff line number Diff line change 12
12
permissions :
13
13
contents : read
14
14
15
+ env :
16
+ CI : true
17
+
15
18
jobs :
16
19
build :
17
20
runs-on : ubuntu-latest
@@ -40,17 +43,40 @@ jobs:
40
43
- name : Install dependencies
41
44
# if: steps.cache.outputs.cache-hit != 'true'
42
45
run : npm install
43
- env :
44
- CI : true
45
46
46
47
- name : Build Tailwind CSS
47
48
run : npm run swcify
48
- env :
49
- CI : true
50
49
51
50
- name : Test
52
- run : |
53
- ln -nfs `pwd` node_modules/tailwindcss # So that Prettier can use the local version
54
- npm test
55
- env :
56
- CI : true
51
+ run : npm test
52
+
53
+ lint :
54
+ runs-on : ubuntu-latest
55
+
56
+ strategy :
57
+ matrix :
58
+ node-version : [16]
59
+
60
+ steps :
61
+ - uses : actions/checkout@v3
62
+ - name : Use Node.js ${{ matrix.node-version }}
63
+ uses : actions/setup-node@v3
64
+ with :
65
+ node-version : ${{ matrix.node-version }}
66
+ # cache: 'npm'
67
+ #
68
+ # - name: Use cached node_modules
69
+ # id: cache
70
+ # uses: actions/cache@v3
71
+ # with:
72
+ # path: node_modules
73
+ # key: nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
74
+ # restore-keys: |
75
+ # nodeModules-
76
+
77
+ - name : Install dependencies
78
+ # if: steps.cache.outputs.cache-hit != 'true'
79
+ run : npm install
80
+
81
+ - name : Lint
82
+ run : npm run style
Original file line number Diff line number Diff line change 68
68
tag_name : ${{ env.TAG_NAME }}
69
69
body : |
70
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)
78
71
files : |
79
72
standalone-cli/dist/tailwindcss-linux-arm64
80
73
standalone-cli/dist/tailwindcss-linux-armv7
Original file line number Diff line number Diff line change 7
7
permissions :
8
8
contents : read
9
9
10
+ env :
11
+ CI : true
12
+
10
13
jobs :
11
14
build :
12
15
runs-on : ubuntu-latest
@@ -37,26 +40,12 @@ jobs:
37
40
- name : Install dependencies
38
41
# if: steps.cache.outputs.cache-hit != 'true'
39
42
run : npm install
40
- env :
41
- CI : true
42
43
43
- - name : Link and build Tailwind CSS
44
- run : |
45
- npm run swcify
46
- ln -nfs `pwd` node_modules/tailwindcss
47
- env :
48
- CI : true
44
+ - name : Build Tailwind CSS
45
+ run : npm run swcify
49
46
50
47
- name : Test
51
48
run : npm test
52
- env :
53
- CI : true
54
-
55
- - name : Unlink Tailwind CSS (for prettier)
56
- run : |
57
- unlink node_modules/tailwindcss
58
- env :
59
- CI : true
60
49
61
50
- name : Resolve version
62
51
id : vars
69
58
- name : Publish
70
59
run : npm publish --tag insiders
71
60
env :
72
- CI : true
73
61
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
74
62
75
63
- name : Trigger Tailwind Play update
Original file line number Diff line number Diff line change 7
7
permissions :
8
8
contents : read
9
9
10
+ env :
11
+ CI : true
12
+
10
13
jobs :
11
14
build :
12
15
runs-on : ubuntu-latest
37
40
- name : Install dependencies
38
41
# if: steps.cache.outputs.cache-hit != 'true'
39
42
run : npm install
40
- env :
41
- CI : true
42
43
43
44
- name : Test
44
45
run : npm test
45
- env :
46
- CI : true
47
46
48
47
- name : Calculate environment variables
49
48
run : |
53
52
- name : Publish
54
53
run : npm publish --tag ${{ env.RELEASE_CHANNEL }}
55
54
env :
56
- CI : true
57
55
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
58
56
59
57
- name : Trigger Tailwind Play update
Original file line number Diff line number Diff line change 23
23
"test" : " jest" ,
24
24
"test:integrations" : " npm run test --prefix ./integrations" ,
25
25
"install:integrations" : " node scripts/install-integrations.js" ,
26
- "posttest" : " npm run style" ,
27
26
"generate:plugin-list" : " node -r @swc/register scripts/create-plugin-list.js" ,
28
27
"generate:types" : " node -r @swc/register scripts/generate-types.js" ,
29
28
"generate" : " npm run generate:plugin-list && npm run generate:types" ,
57
56
"jest" : " ^28.1.3" ,
58
57
"jest-diff" : " ^28.1.3" ,
59
58
"prettier" : " ^2.7.1" ,
60
- "prettier-plugin-tailwindcss" : " ^0.1.13" ,
61
59
"rimraf" : " ^3.0.0" ,
62
60
"source-map-js" : " ^1.0.2"
63
61
},
You can’t perform that action at this time.
0 commit comments