File tree Expand file tree Collapse file tree 3 files changed +51
-1
lines changed
Expand file tree Collapse file tree 3 files changed +51
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+ on :
3+ release :
4+ types : [published]
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+ strategy :
10+ matrix :
11+ node-version : [16]
12+
13+ steps :
14+ - name : Checkout repo
15+ uses : actions/checkout@v3
16+ with :
17+ ref : main
18+
19+ - name : Setup pnpm
20+ uses : pnpm/action-setup@v2
21+ with :
22+ version : 8
23+
24+ - name : Use Node.js ${{ matrix.node-version }}
25+ uses : actions/setup-node@v3
26+ with :
27+ node-version : ${{ matrix.node-version }}
28+ cache : ' pnpm'
29+ registry-url : ' https://registry.npmjs.org'
30+
31+ - name : Install dependencies
32+ run : pnpm install
33+
34+ - name : Set publishing config
35+ run : pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
36+ env :
37+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
38+
39+ - name : Publish
40+ run : pnpm publish --tag latest --access=public
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ cd " $( dirname " $0 " ) "
4+ cd ..
5+
6+ set -e -o pipefail
7+
8+ version=" v$( jq ' .version' package.json -r) "
9+
10+ gh release create " $version "
Original file line number Diff line number Diff line change 11{
22 "name" : " react-with-hoc" ,
33 "description" : " React HOCs made easy and great" ,
4- "version" : " 0.0.1 " ,
4+ "version" : " 0.0.6-wip05 " ,
55 "main" : " dist/index.cjs.js" ,
66 "module" : " dist/index.esm.mjs" ,
77 "umd:main" : " dist/index.umd.js" ,
You can’t perform that action at this time.
0 commit comments