File tree 5 files changed +42
-59
lines changed
5 files changed +42
-59
lines changed Original file line number Diff line number Diff line change @@ -28,21 +28,16 @@ jobs:
28
28
node-version : ${{ matrix.node-version }}
29
29
30
30
- name : Use cached node_modules
31
- id : cache
32
31
uses : actions/cache@v3
33
32
with :
34
33
path : node_modules
35
- key : nodeModules-${{ hashFiles('./package.json') }}-${{ matrix.node-version }}
36
- restore-keys : |
37
- nodeModules-
34
+ key : nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
38
35
39
36
- name : Install dependencies
40
- if : steps.cache.outputs.cache-hit != 'true'
41
37
run : npm install
42
- env :
43
- CI : true
38
+
39
+ - name : Build
40
+ run : npm run build
44
41
45
42
- name : Test
46
43
run : npm test
47
- env :
48
- CI : true
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ permissions:
15
15
jobs :
16
16
prepare :
17
17
permissions :
18
- contents : write # for softprops/action-gh-release to create GitHub release
18
+ contents : write # for softprops/action-gh-release to create GitHub release
19
19
20
20
runs-on : ubuntu-latest
21
21
@@ -31,16 +31,21 @@ jobs:
31
31
with :
32
32
node-version : ${{ matrix.node-version }}
33
33
registry-url : ' https://registry.npmjs.org'
34
- # cache: 'npm'
35
- #
36
- # - name: Use cached node_modules
37
- # id: cache
38
- # uses: actions/cache@v3
39
- # with:
40
- # path: node_modules
41
- # key: nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
42
- # restore-keys: |
43
- # nodeModules-
34
+
35
+ - name : Use cached node_modules
36
+ uses : actions/cache@v3
37
+ with :
38
+ path : node_modules
39
+ key : nodeModules-${{ hashFiles('**/package.json') }}-${{ matrix.node-version }}
40
+
41
+ - name : Install dependencies
42
+ run : npm install
43
+
44
+ - name : Build
45
+ run : npm run build
46
+
47
+ - name : Test
48
+ run : npm test
44
49
45
50
- name : Resolve version
46
51
id : vars
54
59
echo "$RELEASE_NOTES" >> $GITHUB_ENV
55
60
echo "EOF" >> $GITHUB_ENV
56
61
57
- - name : Install dependencies
58
- # if: steps.cache.outputs.cache-hit != 'true'
59
- run : npm install
60
- env :
61
- CI : true
62
-
63
- - name : Test
64
- run : npm test
65
- env :
66
- CI : true
67
-
68
62
- name : Release
69
63
uses : softprops/action-gh-release@v1
70
64
with :
71
65
draft : true
72
66
tag_name : ${{ env.TAG_NAME }}
73
- body : ${{ env.RELEASE_NOTES }}
67
+ body : ${{ env.RELEASE_NOTES }}
Original file line number Diff line number Diff line change @@ -22,30 +22,29 @@ jobs:
22
22
registry-url : ' https://registry.npmjs.org'
23
23
24
24
- name : Use cached node_modules
25
- id : cache
26
25
uses : actions/cache@v3
27
26
with :
28
27
path : node_modules
29
- key : nodeModules-${{ hashFiles('**/package.json') }}-${{ matrix.node-version }}
30
- restore-keys : |
31
- nodeModules-
28
+ key : nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
32
29
33
30
- name : Install dependencies
34
- if : steps.cache.outputs.cache-hit != 'true'
35
31
run : npm install
36
- env :
37
- CI : true
32
+
33
+ - name : Build
34
+ run : npm run build
35
+
36
+ - name : Test
37
+ run : npm test
38
38
39
39
- name : Resolve version
40
40
id : vars
41
- run : |
41
+ run : |
42
42
echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
43
43
44
- - name : " Version based on commit: 0.0.0-insiders.${{ env.SHA_SHORT }}"
44
+ - name : ' Version based on commit: 0.0.0-insiders.${{ env.SHA_SHORT }}'
45
45
run : npm version 0.0.0-insiders.${{ env.SHA_SHORT }} --force --no-git-tag-version
46
46
47
47
- name : Publish
48
48
run : npm publish --tag insiders
49
49
env :
50
- CI : true
51
50
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -23,27 +23,21 @@ jobs:
23
23
with :
24
24
node-version : ${{ matrix.node-version }}
25
25
registry-url : ' https://registry.npmjs.org'
26
- # cache: 'npm'
27
- #
28
- # - name: Use cached node_modules
29
- # id: cache
30
- # uses: actions/cache@v3
31
- # with:
32
- # path: node_modules
33
- # key: nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
34
- # restore-keys: |
35
- # nodeModules-
26
+
27
+ - name : Use cached node_modules
28
+ uses : actions/cache@v3
29
+ with :
30
+ path : node_modules
31
+ key : nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
36
32
37
33
- name : Install dependencies
38
- # if: steps.cache.outputs.cache-hit != 'true'
39
34
run : npm install
40
- env :
41
- CI : true
35
+
36
+ - name : Build
37
+ run : npm run build
42
38
43
39
- name : Test
44
40
run : npm test
45
- env :
46
- CI : true
47
41
48
42
- name : Calculate environment variables
49
43
run : |
52
46
- name : Publish
53
47
run : npm publish --tag ${{ env.RELEASE_CHANNEL }}
54
48
env :
55
- CI : true
56
49
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
- - Nothing yet!
10
+ ### Fixed
11
+
12
+ - Ensure types are published to npm ([ #11 ] ( https://github.com/tailwindlabs/tailwindcss-container-queries/pull/11 ) )
11
13
12
14
## [ 0.1.0] - 2022-10-19
13
15
You can’t perform that action at this time.
0 commit comments