π Check for video support availability #26
This file contains 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: Mraid | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
buildRelease: | |
if: ${{ github.ref == 'refs/heads/main' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- name: Generate mraid js file | |
run: npm run buildRelease | |
- name: Submit a commit with criteo-mraid.js | |
uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: 'github_actions' | |
message: 'Upload a new version of criteo-mraid.js file' | |
add: 'build/criteo-mraid.js' | |
push: true | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |