refactor(package): move SDK from Assets/ import to UPM package in Packages #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build UPM Package Artifact | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "Packages/com.playroomkit.sdk/**" | |
| - "Tools/playroomkit-js/**" | |
| pull_request: | |
| paths: | |
| - "Packages/com.playroomkit.sdk/**" | |
| - "Tools/playroomkit-js/**" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pack-upm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Pack UPM package | |
| run: | | |
| mkdir -p output | |
| cd Packages/com.playroomkit.sdk | |
| npm pack --pack-destination ../../output | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: com.playroomkit.sdk.tgz | |
| path: output/*.tgz |