File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Package
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions :
9+ packages : write
10+ contents : read
11+
12+ jobs :
13+ lint :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v3
17+ - uses : pnpm/action-setup@v2
18+ with :
19+ version : 8.6.0
20+ - uses : actions/setup-node@v3
21+ with :
22+ node-version : 18
23+ cache : ' pnpm'
24+ - run : pnpm install --frozen-lockfile
25+ - run : pnpm test
26+
27+ publish :
28+ needs : lint
29+ runs-on : ubuntu-latest
30+ steps :
31+ - uses : actions/checkout@v3
32+ - uses : pnpm/action-setup@v2
33+ with :
34+ version : 8.6.0
35+ - uses : actions/setup-node@v3
36+ with :
37+ node-version : 18
38+ cache : ' pnpm'
39+ registry-url : https://npm.pkg.github.com/
40+ - run : pnpm install --frozen-lockfile
41+ - run : pnpm build
42+ - run : pnpm publish
43+ env :
44+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments