diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ccd1b6..fcc9962 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,13 +8,14 @@ on: - '[0-9]+.x' - master - canary + - load_iframe_script_content concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: release: # publish only when merged in master on original repo, not on PR - if: github.repository == 'tjallingt/react-youtube' + # if: github.repository == 'tjallingt/react-youtube' runs-on: ubuntu-latest steps: - name: Checkout diff --git a/packages/react-youtube/package.json b/packages/react-youtube/package.json index 202353c..28e9b9a 100644 --- a/packages/react-youtube/package.json +++ b/packages/react-youtube/package.json @@ -29,7 +29,7 @@ "dependencies": { "fast-deep-equal": "3.1.3", "prop-types": "15.8.1", - "youtube-player": "5.5.2" + "youtube-player": "github:yoavsunity/youtube-player#load_iframe_script_content" }, "devDependencies": { "@testing-library/jest-dom": "5.16.5", diff --git a/packages/react-youtube/release.config.js b/packages/react-youtube/release.config.js index 2b3f142..ad29eb1 100644 --- a/packages/react-youtube/release.config.js +++ b/packages/react-youtube/release.config.js @@ -15,11 +15,13 @@ module.exports = { branches: [ '+([0-9])?(.{+([0-9]),x}).x', 'master', + 'load_iframe_script_content', 'next', 'next-major', { name: 'beta', prerelease: true }, { name: 'alpha', prerelease: true }, { name: 'canary', prerelease: true }, + { name: 'load_iframe_script_content', prerelease: true }, ], tagFormat: `v\${version}`, }; diff --git a/yarn.lock b/yarn.lock index c01853f..5fa39b3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9743,10 +9743,9 @@ yocto-queue@^0.1.0: resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== -youtube-player@5.5.2: - version "5.5.2" - resolved "https://registry.yarnpkg.com/youtube-player/-/youtube-player-5.5.2.tgz#052b86b1eabe21ff331095ffffeae285fa7f7cb5" - integrity sha512-ZGtsemSpXnDky2AUYWgxjaopgB+shFHgXVpiJFeNB5nWEugpW1KWYDaHKuLqh2b67r24GtP6HoSW5swvf0fFIQ== +"youtube-player@github:yoavsunity/youtube-player#load_iframe_script_content": + version "4.0.1" + resolved "https://codeload.github.com/yoavsunity/youtube-player/tar.gz/311da3f6134eb9ce49c77328af4dd33fdc40588b" dependencies: debug "^2.6.6" load-script "^1.0.0"