diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5b209761..ca0c0128 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,6 +24,15 @@ jobs: with: node-version: 16 + - name: Set up SSH for deploy key + run: | + mkdir -p ~/.ssh + echo "${{ secrets.DOM_MUTATOR_ACCESS_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan github.com >> ~/.ssh/known_hosts + continue-on-error: true # forked repos don't have access, and this is only for experiment-tag + shell: bash + - name: Install run: yarn install --frozen-lockfile diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c1413b0..573d1b4e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,6 +44,15 @@ jobs: with: node-version: '16' + - name: Set up SSH for deploy key + run: | + mkdir -p ~/.ssh + echo "${{ secrets.DOM_MUTATOR_ACCESS_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan github.com >> ~/.ssh/known_hosts + continue-on-error: true # forked repos don't have access, and this is only for experiment-tag + shell: bash + - name: Install run: yarn install --frozen-lockfile diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb360c43..95b3c026 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,6 +30,15 @@ jobs: with: node-version: ${{ matrix.node-version }} + - name: Set up SSH for deploy key + run: | + mkdir -p ~/.ssh + echo "${{ secrets.DOM_MUTATOR_ACCESS_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan github.com >> ~/.ssh/known_hosts + continue-on-error: true # forked repos don't have access, and this is only for experiment-tag + shell: bash + - name: Install run: yarn install --frozen-lockfile diff --git a/packages/experiment-tag/package.json b/packages/experiment-tag/package.json index 7c7e7ac3..1cc884d9 100644 --- a/packages/experiment-tag/package.json +++ b/packages/experiment-tag/package.json @@ -28,7 +28,7 @@ "dependencies": { "@amplitude/experiment-core": "^0.10.1", "@amplitude/experiment-js-client": "^1.13.2", - "dom-mutator": "^0.6.0" + "dom-mutator": "git+ssh://git@github.com:amplitude/dom-mutator#nested-html-fix" }, "devDependencies": { "@rollup/plugin-terser": "^0.4.4" diff --git a/yarn.lock b/yarn.lock index de885a44..abc87dae 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3646,10 +3646,9 @@ dom-accessibility-api@^0.5.1: resolved "https://registry.yarnpkg.com/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz#5a7429e6066eb3664d911e33fb0e45de8eb08453" integrity sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg== -dom-mutator@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/dom-mutator/-/dom-mutator-0.6.0.tgz#079d7a4b3e8981a562cd777548b99baab51d65c5" - integrity sha512-iCt9o0aYfXMUkz/43ZOAUFQYotjGB+GNbYJiJdz4TgXkyToXbbRy5S6FbTp72lRBtfpUMwEc1KmpFEU4CZeoNg== +"dom-mutator@git+ssh://git@github.com:amplitude/dom-mutator#nested-html-fix": + version "0.7.1" + resolved "git+ssh://git@github.com:amplitude/dom-mutator#86232f6caa011c4bcec3523e58bd918ed967906d" domexception@^4.0.0: version "4.0.0"