File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed
Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 2828 cache : ' pnpm'
2929
3030 - name : Install dependencies
31- run : pnpm install
31+ run : |
32+ apt update
33+ apt install -y yq
34+
35+ pnpm install
36+
37+ - name : Download specification
38+ run : curl -L -o openapi.yaml https://vrchat.community/openapi.yaml
39+
40+ - name : Build
41+ run : pnpm build
42+
43+ - name : Write version
44+ run : |
45+ VERSION=$(yq '.info.version' openapi.yaml | tr -d '"')
46+ jq --arg version "$VERSION" '.version = $version' package.json > tmp.$$.json && mv tmp.$$.json package.json
3247
3348 - run : |
34- pnpm publish --provenance
49+ pnpm publish --provenance --tag next --publish-branch v2 --no-git-checks
3550 env:
3651 NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11node_modules
22src /generated
3- dist
3+ dist
4+ openapi.yaml
Original file line number Diff line number Diff line change 11{
22 "name" : " vrchat" ,
3- "version" : " 1.19.4-alpha .0" ,
3+ "version" : " 2.0 .0" ,
44 "type" : " module" ,
55 "description" : " " ,
66 "main" : " dist/index.js" ,
You can’t perform that action at this time.
0 commit comments