File tree Expand file tree Collapse file tree 4 files changed +104
-18
lines changed
Expand file tree Collapse file tree 4 files changed +104
-18
lines changed Original file line number Diff line number Diff line change 1+ name : Prepare Release
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ tags :
7+ - ' v*'
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ prepare :
14+ permissions :
15+ contents : write # for softprops/action-gh-release to create GitHub release
16+
17+ runs-on : ubuntu-latest
18+
19+ strategy :
20+ matrix :
21+ node-version : [22]
22+
23+ steps :
24+ - uses : actions/checkout@v4
25+
26+ - name : Use Node.js ${{ matrix.node-version }}
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version : ${{ matrix.node-version }}
30+ registry-url : ' https://registry.npmjs.org'
31+ cache : ' npm'
32+
33+ - name : Install dependencies
34+ run : npm install
35+
36+ - name : Test
37+ run : npm test
38+
39+ - name : Resolve version
40+ id : vars
41+ run : |
42+ echo "TAG_NAME=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
43+
44+ - name : Get release notes
45+ run : |
46+ RELEASE_NOTES=$(npm run release-notes --silent)
47+ echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
48+ echo "$RELEASE_NOTES" >> $GITHUB_ENV
49+ echo "EOF" >> $GITHUB_ENV
50+
51+ - name : Release
52+ uses : softprops/action-gh-release@v1
53+ with :
54+ draft : true
55+ tag_name : ${{ env.TAG_NAME }}
56+ body : ${{ env.RELEASE_NOTES }}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Release Insiders
22
33on :
44 push :
5- branches : [master ]
5+ branches : [main ]
66
77permissions :
88 contents : read
@@ -14,31 +14,20 @@ jobs:
1414
1515 strategy :
1616 matrix :
17- node-version : [12 ]
17+ node-version : [22 ]
1818
1919 steps :
20- - uses : actions/checkout@v2
20+ - uses : actions/checkout@v4
2121
2222 - name : Use Node.js ${{ matrix.node-version }}
23- uses : actions/setup-node@v2
23+ uses : actions/setup-node@v4
2424 with :
2525 node-version : ${{ matrix.node-version }}
2626 registry-url : ' https://registry.npmjs.org'
27-
28- - name : Use cached node_modules
29- id : cache
30- uses : actions/cache@v2
31- with :
32- path : node_modules
33- key : nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
34- restore-keys : |
35- nodeModules-
27+ cache : ' npm'
3628
3729 - name : Install dependencies
38- if : steps.cache.outputs.cache-hit != 'true'
3930 run : npm install
40- env :
41- CI : true
4231
4332 - name : Resolve version
4433 id : vars
5039 - name : Publish
5140 run : npm publish --provenance --tag insiders
5241 env :
53- CI : true
5442 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ permissions :
8+ contents : read
9+ id-token : write
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+
15+ strategy :
16+ matrix :
17+ node-version : [22]
18+
19+ steps :
20+ - uses : actions/checkout@v4
21+
22+ - name : Use Node.js ${{ matrix.node-version }}
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : ${{ matrix.node-version }}
26+ registry-url : ' https://registry.npmjs.org'
27+ cache : ' npm'
28+
29+ - name : Install dependencies
30+ run : npm install
31+
32+ - name : Test
33+ run : npm test
34+
35+ - name : Calculate environment variables
36+ run : |
37+ echo "RELEASE_CHANNEL=$(npm run release-channel --silent)" >> $GITHUB_ENV
38+
39+ - name : Publish
40+ run : npm publish --provenance --tag ${{ env.RELEASE_CHANNEL }}
41+ env :
42+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
1010### Fixed
1111
12- - Update ` tailwindcss ` peer dependency to include ` 4.0.0- alpha.20 ` which adds support for this plugin ([ #163 ] ( https://github.com/tailwindlabs/tailwindcss-forms/pull/163 ) )
12+ - Support installing with alpha versions of Tailwind CSS v4 ([ #163 ] ( https://github.com/tailwindlabs/tailwindcss-forms/pull/163 ) )
1313
1414## [ 0.5.7] - 2023-11-10
1515
You can’t perform that action at this time.
0 commit comments