fix: auto-set fit to contain for image/video clips on resize (#82) #7
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 | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| release: | |
| name: Verify & Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| id-token: write | |
| env: | |
| HAS_EXTENDED_TESTS: ${{ secrets.EXTENDED_REGRESSION_SSH_KEY != '' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| path: shotstack-studio-sdk | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| working-directory: shotstack-studio-sdk | |
| run: npm install | |
| - name: Run verification suite | |
| working-directory: shotstack-studio-sdk | |
| run: npm run verify:ci | |
| - name: Upload coverage report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: shotstack-studio-sdk/coverage/ | |
| retention-days: 14 | |
| - name: "[Extended] Set up SSH for regression suite" | |
| if: env.HAS_EXTENDED_TESTS == 'true' | |
| uses: webfactory/ssh-agent@v0.9.0 | |
| with: | |
| ssh-private-key: ${{ secrets.EXTENDED_REGRESSION_SSH_KEY }} | |
| - name: "[Extended] Clone regression suite" | |
| if: env.HAS_EXTENDED_TESTS == 'true' | |
| run: git clone git@github.com:shotstack/shotstack-studio-extended-regression-suite.git | |
| - name: "[Extended] Install test dependencies" | |
| if: env.HAS_EXTENDED_TESTS == 'true' | |
| working-directory: shotstack-studio-extended-regression-suite | |
| run: npm install | |
| - name: "[Extended] Run behavioural regression tests" | |
| if: env.HAS_EXTENDED_TESTS == 'true' | |
| working-directory: shotstack-studio-extended-regression-suite | |
| run: npm test | |
| - name: Release | |
| working-directory: shotstack-studio-sdk | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: npx semantic-release |