forked from react-native-webview/react-native-webview
-
Notifications
You must be signed in to change notification settings - Fork 6
feat: Add publish-release workflow #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 }} | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| lts/* |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.