File tree Expand file tree Collapse file tree 3 files changed +61
-2
lines changed
Expand file tree Collapse file tree 3 files changed +61
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ jobs :
8+ version :
9+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
13+ pull-requests : write
14+ id-token : write
15+ steps :
16+ - uses : actions/checkout@v4
17+
18+ - uses : pnpm/action-setup@v4
19+
20+ - uses : actions/setup-node@v4
21+ with :
22+ node-version : 20
23+ cache : ' pnpm'
24+
25+ - run : pnpm publish --access public
26+ env :
27+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ # .github/workflows/ci.yml
2+ name : CI
3+
4+ on :
5+ pull_request :
6+ branches : [main]
7+
8+ jobs :
9+ test :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Setup pnpm
17+ uses : pnpm/action-setup@v4
18+
19+ - name : Setup Node.js
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : 20
23+ cache : ' pnpm'
24+
25+ - name : Install dependencies
26+ run : pnpm install
27+
28+ - name : Run build
29+ run : pnpm build
30+
31+ - name : Run tests
32+ run : pnpm test
Original file line number Diff line number Diff line change 11{
2- "name" : " @graphql /example" ,
3- "version" : " 1.0.0 " ,
2+ "name" : " @victor-oai /example" ,
3+ "version" : " 1.0.1 " ,
44 "description" : " " ,
55 "type" : " module" ,
66 "main" : " dist/index.js" ,
You can’t perform that action at this time.
0 commit comments