File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 required : false
1111 type : string
1212 default : main
13+ outputs :
14+ version :
15+ description : Version the preview was published under.
16+ value : ${{ jobs.generate.outputs.version }}
17+ install :
18+ description : Command that installs the preview package.
19+ value : ${{ jobs.build.outputs.install }}
1320
1421name : CI
1522
5663 build :
5764 needs : generate
5865 runs-on : ubuntu-latest
66+ outputs :
67+ install : ${{ steps.preview.outputs.install }}
5968 steps :
6069 - uses : actions/checkout@v7
6170 with :
7685
7786 - run : pnpm build
7887
79- - run : pnpm exec pkg-pr-new publish --packageManager=pnpm --no-template
88+ - id : preview
89+ run : |
90+ pnpm exec pkg-pr-new publish \
91+ --packageManager=pnpm \
92+ --no-template \
93+ --json preview.json \
94+ --comment=${{ github.repository == 'vrchatapi/vrchatapi-javascript' && 'update' || 'off' }}
95+
96+ echo "install=pnpm add $(jq -r '.packages[0].url' preview.json)" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments