forked from polkadot-js/extension
-
Notifications
You must be signed in to change notification settings - Fork 3
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
enable on cennznet extension #25
Open
KarishmaBothara
wants to merge
23
commits into
master
Choose a base branch
from
useOnlyCENNZnetExtension
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c98ae21
enable on cennznet extension
actions-user 0640c56
ci to publish
actions-user db1cfac
fix lint issues
actions-user e63d45c
fix test
actions-user ed4410c
renamed CENNZ.svg to cennz.svg to make webpack happy
actions-user 103b1ed
fix test
actions-user 2c020f3
fix test
actions-user bf1f7da
fix test
actions-user bf56ec8
remove ethereum test suit
actions-user 63c5884
update ci and extension fall back part
actions-user 79fabfa
as per review comment
actions-user 80882ce
remove dependency from ci job
actions-user 4f1e9a7
test
actions-user 9093251
add lerna dep and json file
actions-user 1fd37c6
exclude extension-ui from lerna as it does not contain build
actions-user 9d0a42b
ignore cennznet/extension-ui from ci
actions-user 083ead4
ignore ui from lerna exec in publish
actions-user 7783629
remove dry run
actions-user 2ecf668
test
actions-user 366bb36
patch version
actions-user 269eda1
update yarn lock
actions-user 98f6568
wip
actions-user 9631930
wip
actions-user 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 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
This file contains 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,53 @@ | ||||||
name: Release Pipeline (develop/2.0) | ||||||
KarishmaBothara marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
on: | ||||||
pull_request: | ||||||
branches: | ||||||
- master | ||||||
types: | ||||||
- labeled | ||||||
check_suite: | ||||||
types: | ||||||
- completed | ||||||
|
||||||
jobs: | ||||||
release-to-github: | ||||||
needs: | ||||||
- merge-release-branch | ||||||
# release to github only when its a prerelease branch and auto merge label is triggered | ||||||
if: ${{ startsWith(github.head_ref, 'useOnlyCENNZnetExtension') }} && ${{ github.event.label.name == 'automerge' }} | ||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
# checkout merged branch | ||||||
- uses: actions/checkout@v2 | ||||||
with: | ||||||
ref: useOnlyCENNZnetExtension | ||||||
- uses: actions/setup-node@v1 | ||||||
with: | ||||||
node-version: '15.3' | ||||||
- name: find release version | ||||||
id: find_version | ||||||
run: | | ||||||
echo ::set-output name=tag_name::$(cat packages/extension/package.json \ | ||||||
| grep version \ | ||||||
| head -1 \ | ||||||
| grep -E -o '[0-9|.]+\-*[a-z]*\.[0-9]+|]+') | ||||||
- name: make release branch | ||||||
uses: peterjgrainger/[email protected] | ||||||
env: | ||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
with: | ||||||
branch: "release/${{steps.find_version.outputs.tag_name}}" | ||||||
- name: package | ||||||
run: | | ||||||
yarn && yarn build | ||||||
npx lerna exec -- 'cp package.json build/' | ||||||
npx lerna exec -- 'cp README.md build/' | ||||||
npx lerna exec -- 'cp ../../LICENSE build/' | ||||||
KarishmaBothara marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
- name: publish to npm | ||||||
env: | ||||||
NPM_KEY: ${{ secrets.NPM_KEY }} | ||||||
run: | | ||||||
echo "//registry.npmjs.org/:_authToken=${NPM_KEY}" > ~/.npmrc | ||||||
echo 'Publishing to npmjs.org.' | ||||||
npx lerna exec -- 'cd build && npm publish --access public' | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can add
Suggested change
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just checking which file were you planning to exclude?
packages/extension-chains/src/config.ts
still includedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
excluded it... had few listing err in it... mostly related to sort-key in types..
but in case of enum we don't really want to sort...hv added at the top of the file /* eslint sort-keys: 0 */