Skip to content

Commit e25e3d8

Browse files
authored
Merge pull request #65 from MetaMask/feature/release_workflow
feat: Add publish-release workflow
2 parents 6925354 + e076245 commit e25e3d8

File tree

3 files changed

+120
-0
lines changed

3 files changed

+120
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Publish Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish-release:
8+
permissions:
9+
contents: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout and setup environment
13+
uses: MetaMask/action-checkout-and-setup@v1
14+
with:
15+
is-high-risk-environment: true
16+
- uses: MetaMask/action-publish-release@v3
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
- run: yarn build
20+
- name: Upload build artifacts
21+
uses: actions/upload-artifact@v4
22+
with:
23+
name: publish-release-artifacts-${{ github.sha }}
24+
include-hidden-files: true
25+
retention-days: 4
26+
path: |
27+
./packages/**/dist
28+
./node_modules/.yarn-integrity
29+
30+
publish-npm-dry-run:
31+
needs: publish-release
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout and setup environment
35+
uses: MetaMask/action-checkout-and-setup@v1
36+
with:
37+
is-high-risk-environment: true
38+
ref: ${{ github.sha }}
39+
- name: Restore build artifacts
40+
uses: actions/download-artifact@v4
41+
with:
42+
name: publish-release-artifacts-${{ github.sha }}
43+
- name: Dry Run Publish
44+
# omit npm-token token to perform dry run publish
45+
uses: MetaMask/action-npm-publish@v5
46+
with:
47+
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
48+
subteam: S04EF225J1M # @metamask-mobile-platform
49+
env:
50+
SKIP_PREPACK: true
51+
52+
publish-npm:
53+
name: Publish to NPM
54+
environment: npm-publish
55+
runs-on: ubuntu-latest
56+
needs: publish-npm-dry-run
57+
steps:
58+
- name: Checkout and setup environment
59+
uses: MetaMask/action-checkout-and-setup@v1
60+
with:
61+
is-high-risk-environment: true
62+
ref: ${{ github.sha }}
63+
- name: Restore build artifacts
64+
uses: actions/download-artifact@v4
65+
with:
66+
name: publish-release-artifacts-${{ github.sha }}
67+
- name: Publish to NPM
68+
uses: MetaMask/action-npm-publish@v5
69+
with:
70+
npm-token: ${{ secrets.NPM_TOKEN }}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/*

CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
### Added
11+
12+
- 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)
13+
- 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+
15+
## [14.2.2]
16+
17+
### Fixed
18+
19+
- On iOS on opening of some Dapps there is download file pop up (https://github.com/MetaMask/react-native-webview-mm/pull/63)
20+
21+
## [14.2.1]
22+
23+
### Fixed
24+
25+
- Download file requested when connecting to any Dapp (https://github.com/MetaMask/react-native-webview-mm/pull/58)
26+
27+
## [14.2.0]
28+
29+
### Added
30+
31+
- 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)
32+
33+
### Fixed
34+
35+
- 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)
36+
- Fix to regular file downloads on iOS (https://github.com/MetaMask/react-native-webview-mm/pull/53)
37+
38+
## [14.1.0]
39+
40+
### Changed
41+
42+
- 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)
43+
- sync with upstream v13.13.5 (https://github.com/MetaMask/react-native-webview-mm/pull/47)
44+
45+
[Unreleased]: https://github.com/MetaMask/react-native-webview-mm/compare/6925354...main
46+
[14.2.2]: https://github.com/MetaMask/react-native-webview-mm/compare/3be76c0...6925354
47+
[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
48+
[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
49+
[14.1.0]: https://github.com/MetaMask/react-native-webview-mm/compare/v14.0.4...v14.1.0

0 commit comments

Comments
 (0)