File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release and Publish
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ jobs :
8+ release :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ with :
13+ fetch-depth : 0
14+
15+ - name : Setup Node.js
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : ' 18'
19+ registry-url : ' https://registry.npmjs.org'
20+
21+ - run : npm ci
22+ - run : npm test
23+ - run : npm run build
24+
25+ - name : Semantic Release
26+ uses : cycjimmy/semantic-release-action@v4
27+ with :
28+ extra_plugins : |
29+ @semantic-release/changelog
30+ @semantic-release/git
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1111 "build" : " tsc" ,
1212 "dev" : " ts-node src/index.ts" ,
1313 "test" : " bun test" ,
14- "prepublishOnly" : " npm run build" ,
14+ "prepublishOnly" : " bun test && bun run build" ,
1515 "prepare" : " npm run build" ,
1616 "example" : " ts-node examples/basic-usage.ts" ,
1717 "db:up" : " docker-compose up -d" ,
You can’t perform that action at this time.
0 commit comments