File tree Expand file tree Collapse file tree 2 files changed +51
-24
lines changed
Expand file tree Collapse file tree 2 files changed +51
-24
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Publish to NPM every tag (i.e. new version)
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ jobs :
9+ test :
10+ strategy :
11+ matrix :
12+ node-version : [12, 14]
13+ os : [ubuntu-latest, windows-latest, macOS-latest]
14+ tailwindcss-version : ["^1.9.5", "2.0.0-alpha.5"]
15+ runs-on : ${{ matrix.os }}
16+ timeout-minutes : 15
17+ steps :
18+ - uses : actions/checkout@v1
19+ - uses : actions/setup-node@v2-beta
20+ with :
21+ node-version : ${{ matrix.node-version }}
22+ registry-url : https://registry.npmjs.org/
23+ - uses : pnpm/action-setup@v1.2.0
24+ with :
25+ version : 5.10.x
26+ - run : pnpm install
27+ - run : pnpm uninstall tailwindcss
28+ - run : pnpm install --save tailwindcss@${{ matrix.tailwindcss-version }}
29+ - run : pnpm run test
30+
31+ publish :
32+ needs : test
33+ strategy :
34+ matrix :
35+ node-version : [14]
36+ os : [ubuntu-latest]
37+ runs-on : ${{ matrix.os }}
38+ timeout-minutes : 15
39+ steps :
40+ - uses : actions/checkout@v1
41+ - uses : actions/setup-node@v2-beta
42+ with :
43+ node-version : ${{ matrix.node-version }}
44+ registry-url : https://registry.npmjs.org/
45+ - uses : pnpm/action-setup@v1.2.0
46+ with :
47+ version : 5.10.x
48+ - run : pnpm install
49+ - run : npm publish
50+ env :
51+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments