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 28
28
cache : ' pnpm'
29
29
30
30
- 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
32
47
33
48
- run : |
34
- pnpm publish --provenance
49
+ pnpm publish --provenance --tag next --publish-branch v2 --no-git-checks
35
50
env:
36
51
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
node_modules
2
2
src /generated
3
- dist
3
+ dist
4
+ openapi.yaml
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vrchat" ,
3
- "version" : " 1.19.4-alpha .0" ,
3
+ "version" : " 2.0 .0" ,
4
4
"type" : " module" ,
5
5
"description" : " " ,
6
6
"main" : " dist/index.js" ,
You can’t perform that action at this time.
0 commit comments