diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml new file mode 100644 index 000000000..aee76c47f --- /dev/null +++ b/.github/workflows/publish-release.yml @@ -0,0 +1,70 @@ +name: Publish Release + +on: + workflow_dispatch: + +jobs: + publish-release: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - name: Checkout and setup environment + uses: MetaMask/action-checkout-and-setup@v1 + with: + is-high-risk-environment: true + - uses: MetaMask/action-publish-release@v3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: yarn build + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: publish-release-artifacts-${{ github.sha }} + include-hidden-files: true + retention-days: 4 + path: | + ./packages/**/dist + ./node_modules/.yarn-integrity + + publish-npm-dry-run: + needs: publish-release + runs-on: ubuntu-latest + steps: + - name: Checkout and setup environment + uses: MetaMask/action-checkout-and-setup@v1 + with: + is-high-risk-environment: true + ref: ${{ github.sha }} + - name: Restore build artifacts + uses: actions/download-artifact@v4 + with: + name: publish-release-artifacts-${{ github.sha }} + - name: Dry Run Publish + # omit npm-token token to perform dry run publish + uses: MetaMask/action-npm-publish@v5 + with: + slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} + subteam: S04EF225J1M # @metamask-mobile-platform + env: + SKIP_PREPACK: true + + publish-npm: + name: Publish to NPM + environment: npm-publish + runs-on: ubuntu-latest + needs: publish-npm-dry-run + steps: + - name: Checkout and setup environment + uses: MetaMask/action-checkout-and-setup@v1 + with: + is-high-risk-environment: true + ref: ${{ github.sha }} + - name: Restore build artifacts + uses: actions/download-artifact@v4 + with: + name: publish-release-artifacts-${{ github.sha }} + - name: Publish to NPM + uses: MetaMask/action-npm-publish@v5 + with: + npm-token: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..b009dfb9d --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/* diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..577dbcb28 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,49 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +### Added + +- Inject Javascript on iOS to detect all iFrames inside the current page and report them to the React app (https://github.com/MetaMask/react-native-webview-mm/pull/61) +- Inject Javascript on Android to detect all iFrames inside the current page and report them to the React app (https://github.com/MetaMask/react-native-webview-mm/pull/60) + +## [14.2.2] + +### Fixed + +- On iOS on opening of some Dapps there is download file pop up (https://github.com/MetaMask/react-native-webview-mm/pull/63) + +## [14.2.1] + +### Fixed + +- Download file requested when connecting to any Dapp (https://github.com/MetaMask/react-native-webview-mm/pull/58) + +## [14.2.0] + +### Added + +- Implement tapjacking prevention via 500ms delay (https://github.com/MetaMask/react-native-webview-mm/pull/54, https://github.com/MetaMask/react-native-webview-mm/pull/52) + +### Fixed + +- Fixes to blob downloading on both platforms (https://github.com/MetaMask/react-native-webview-mm/pull/51, https://github.com/MetaMask/react-native-webview-mm/pull/50) +- Fix to regular file downloads on iOS (https://github.com/MetaMask/react-native-webview-mm/pull/53) + +## [14.1.0] + +### Changed + +- bump ws from 6.2.2 to 6.2.3 in the npm_and_yarn group across 1 directory (https://github.com/MetaMask/react-native-webview-mm/pull/35) +- sync with upstream v13.13.5 (https://github.com/MetaMask/react-native-webview-mm/pull/47) + +[Unreleased]: https://github.com/MetaMask/react-native-webview-mm/compare/6925354...main +[14.2.2]: https://github.com/MetaMask/react-native-webview-mm/compare/3be76c0...6925354 +[14.2.1]: https://github.com/MetaMask/react-native-webview-mm/compare/release/14.2.0...MetaMask:react-native-webview-mm:release/14.2.1 +[14.2.0]: https://github.com/MetaMask/react-native-webview-mm/compare/release/14.1.0...MetaMask:react-native-webview-mm:release/14.2.0 +[14.1.0]: https://github.com/MetaMask/react-native-webview-mm/compare/v14.0.4...v14.1.0