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+ ---
2+ ' @bitauth/libauth ' : patch
3+ ---
4+
5+ Publish with provenance via GitHub Actions
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ push :
4+ branches :
5+ - master
6+ - next
7+
8+ concurrency : ${{ github.workflow }}-${{ github.ref }}
9+
10+ jobs :
11+ release :
12+ name : Release
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout Repo
16+ uses : actions/checkout@v4
17+ with :
18+ submodules : ' recursive'
19+ - name : Install Node.js
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : 20
23+ - name : Install Dependencies
24+ run : yarn install --immutable --immutable-cache
25+ - name : Create Release Pull Request or Publish to npm
26+ id : changesets
27+ uses : changesets/action@v1
28+ with :
29+ version : yarn version
30+ publish : yarn release
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1414 <br />
1515 <a href =" https://www.npmjs.com/package/@bitauth/libauth " ><img src =" https://img.shields.io/npm/v/@bitauth/libauth.svg " alt =" NPM version " /></a >
1616 <a href =" https://codecov.io/gh/bitauth/libauth " ><img src =" https://img.shields.io/codecov/c/github/bitauth/libauth/master.svg " alt =" Codecov " /></a >
17- <a href =" https://github.com/bitauth/libauth/actions/workflows/ci.yaml " ><img src =" https://img.shields.io/github/actions/workflow/status/bitauth/libauth/ci.yaml ?branch=master " alt =" CI " /></a >
17+ <a href =" https://github.com/bitauth/libauth/actions/workflows/ci.yml " ><img src =" https://img.shields.io/github/actions/workflow/status/bitauth/libauth/ci.yml ?branch=master " alt =" CI " /></a >
1818 <a href =" https://twitter.com/libauth " ><img alt =" Follow Libauth on Twitter " src =" https://img.shields.io/badge/follow-@libauth-1DA1F2?logo=twitter " ></a >
1919 <a href =" https://t.me/libauth_dev " ><img alt =" Join Chat on Telegram " src =" https://img.shields.io/badge/chat-Libauth%20Devs-0088CC?logo=telegram " ></a >
2020 <a href =" https://www.npmjs.com/package/@bitauth/libauth " ><img alt =" npm downloads " src =" https://img.shields.io/npm/dm/@bitauth/libauth " ></a >
Original file line number Diff line number Diff line change 7979 "cov" : " yarn build && yarn test:unit && yarn cov:html && yarn cov:lcov && open-cli coverage/index.html" ,
8080 "cov:html" : " c8 report --reporter=html" ,
8181 "cov:lcov" : " c8 report --reporter=lcov" ,
82- "cov:check" : " c8 report && c8 check-coverage --lines 80 --functions 80 --branches 80" ,
8382 "doc" : " yarn doc:html && yarn doc:html && open-cli build/docs/index.html" ,
8483 "doc:logo" : " cpy assets/libauth.svg build/docs" ,
8584 "doc:html" : " typedoc src/index.ts --out build/docs" ,
8685 "doc:next" : " yarn build && yarn doc:extract && yarn doc:generate" ,
8786 "doc:extract" : " mkdir -p build/api && api-extractor run --local --typescript-compiler-folder node_modules/typescript" ,
8887 "doc:generate" : " api-documenter markdown -i temp -o build/api/markdown" ,
8988 "doc:check-api" : " api-extractor run --typescript-compiler-folder node_modules/typescript" ,
90- "reset" : " git clean -dfx && git reset --hard && yarn" ,
91- "prepare-release" : " yarn reset && yarn test && yarn cov:check && yarn run version" ,
92- "prepare-release:alpha" : " yarn reset && yarn test && yarn cov:check && yarn run version:alpha"
89+ "version" : " yarn changeset version && yarn fix:prettier" ,
90+ "release" : " yarn build && yarn changeset publish"
9391 },
9492 "engines" : {
9593 "node" : " ^12.20.0 || ^14.13.1 || >=16.0.0"
140138 "typedoc" : " ^0.25.7" ,
141139 "typescript" : " ^5.3.3"
142140 },
141+ "publishConfig" : {
142+ "provenance" : true
143+ },
143144 "files" : [
144145 " build" ,
145146 " !build/.tsbuildinfo" ,
You can’t perform that action at this time.
0 commit comments