update package version again #200
Workflow file for this run
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: Release Candidate | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - 'next-*' | |
| jobs: | |
| build-sdk: | |
| name: Build WebSDK | |
| runs-on: ubuntu-latest | |
| if: ${{ startsWith(github.ref, 'refs/tags/next-') }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install the dependencies 🧱 | |
| run: npm ci | |
| - name: build | |
| run: npx lerna run build --scope=@millicast/sdk | |
| - name: Upload SDK build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sdk-dist | |
| path: packages/millicast-sdk/dist | |
| pulish-next: | |
| name: Publish SDK to NPM for next-<version> tag | |
| runs-on: ubuntu-latest | |
| needs: build-sdk | |
| if: ${{ startsWith(github.ref, 'refs/tags/next-') }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install the dependencies 🧱 | |
| run: npm ci | |
| - name: Download SDK build artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: sdk-dist | |
| path: packages/millicast-sdk/dist | |
| - name: Add Readme to package | |
| run: cp README.md packages/millicast-sdk/README.md | |
| - name: Login to npm | |
| run: | | |
| echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | |
| - name: publish | |
| working-directory: './packages/millicast-sdk' | |
| env: | |
| NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
| run: | | |
| npm publish --tag next |