Jelajahi Sumber

Allow for draft release creation (#2863)

* Allow for draft release creation

* Current as-is changes

* Build electron on all release/*

* Only use PAT

* Mini OCD-related cleanups

* Bump dev, release on any

* Publish on any (dev bump, allows this to be tested)
Jaco Greeff 4 tahun lalu
induk
melakukan
1968583791

+ 4 - 3
.github/workflows/push-master.yml

@@ -11,7 +11,7 @@ jobs:
       matrix:
         step: ['build:release:www']
     name: ${{ matrix.step }}
-    if: "! contains(github.event.head_commit.message, '[CI Skip]') && github.repository == 'polkadot-js/apps'"
+    if: "! startsWith(github.event.head_commit.message, '[CI Skip]') && github.repository == 'polkadot-js/apps'"
     runs-on: ubuntu-latest
     steps:
     - uses: actions/checkout@v1
@@ -23,6 +23,7 @@ jobs:
         CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
         GH_PAGES_SRC: packages/apps/build
         GH_PAT: ${{ secrets.GH_PAT }}
+        GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }}
         NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
         PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
         PINATA_SECRET_KEY: ${{ secrets.PINATA_SECRET_KEY }}
@@ -30,13 +31,13 @@ jobs:
         yarn install --immutable | grep -v 'YN0013'
         yarn ${{ matrix.step }}
 
-  # only run on "CI skip", i.e. when the actual version has been bumped
+  # only run on "CI skip", i.e. when the actual version has been bumped to release/stable
   electron:
     strategy:
       matrix:
         os: [macos-latest, ubuntu-latest, windows-latest]
     runs-on: ${{ matrix.os }}
-    if: "contains(github.event.head_commit.message, '[CI Skip]') && github.repository == 'polkadot-js/apps'"
+    if: "startsWith(github.event.head_commit.message, '[CI Skip] release/') && github.repository == 'polkadot-js/apps'"
     name: ${{ matrix.os }}
     steps:
       - uses: actions/checkout@v1

+ 37 - 23
CHANGELOG.md

@@ -1,4 +1,18 @@
-# 0.43.1 May 26, 2020
+# CHANGELOG
+
+## 0.44.0-beta.30
+
+- Publish electron images on release (Thanks to https://github.com/EthWorks)
+- Adjust with latest Arcardia types (Thanks to https://github.com/ETeissonniere)
+- Extensions and fixes to the russian translations (Thanks to https://github.com/illlefr4u)
+- Adjust collective extrinsics to cater for weight & lengths
+- Allow bonding with full free amount (this fixes bonding for vesting)
+- Fixes for Kusama as well as Polkadot claims
+- Allow Polkadot CC1 links to Polkascan & Subscan
+- Update Polkascan links with new formats
+- Don't display era progress when Forcing `isForceNone`
+
+## 0.43.1 May 26, 2020
 
 - Support for Polkadot CC1 Claims (Thanks to https://github.com/amaurymartiny & https://github.com/Tbaut)
 - Small typo fixes (Thanks to https://github.com/Swader)
@@ -10,7 +24,7 @@
 - `@polkadot/api` 1.16.1
 - `@polkadot/util` 2.11.1
 
-# 0.42.1 May 22, 2020
+## 0.42.1 May 22, 2020
 
 - Adjust Subscan proposal links (Thanks to https://github.com/illlefr4u)
 - Add environment suport for docker images (Thanks to https://github.com/chevdor)
@@ -57,7 +71,7 @@
 - Allow for tabes with aliasses (on renames) & redirects
 - Align types and calls with latest substrate
 
-# 0.41.1 Apr 20, 2020
+## 0.41.1 Apr 20, 2020
 
 - Fix for searching child identities on parent name (Thanks to https://github.com/krogla)
 - Support chains with no balances module (Thanks to https://github.com/Voxelot)
@@ -79,7 +93,7 @@
 - More components to functional, specific focus on TxModal extends
 - Bumps to all @polkadot/* packages for latest support everywhere
 
-# 0.40.1 Apr 9, 2020
+## 0.40.1 Apr 9, 2020
 
 - Swap voting to aye/nay toggles (Thanks to https://github.com/Lowhearth)
 - Cater for chains where no tip is present (Thanks to https://github.com/Sushisource)
@@ -113,7 +127,7 @@
 - Cleanup all voting lock, consistent display
 - ... loads of other under-the-hood improvements and cleanups
 
-# 0.39.1 Jan 31, 2020
+## 0.39.1 Jan 31, 2020
 
 - **Breaking** Drop support for V1 Substrate chains
 - Translation into Chinese (Thanks to https://github.com/dushaobindoudou)
@@ -134,7 +148,7 @@
 - Adjust balance display formats
 - Update to latest libraries (incl. util 2.0 & api 1.0)
 
-# 0.38.1
+## 0.38.1
 
 - Fix summarybar in 123-code (Thanks to https://github.com/anakornk)
 - Update Edgeware with correct keys (Thanks to https://github.com/drewstone)
@@ -146,7 +160,7 @@
 - Improved staking page rendering (background)
 - Update to latest libraries
 
-# 0.37.1
+## 0.37.1
 
 - Support for Kusama CC3
 - Support for contracts with new ABI v2 (Thanks to https://github.com/kwingram25)
@@ -169,7 +183,7 @@
 - Account locks are applied on a genesis range (e.g. CC2 & CC3 allow availability)
 - ... lots of smaller enhancements & bug fixes
 
-# 0.36.1
+## 0.36.1
 
 - Api 0.95.1, Util 1.6.1, Extension 0.13.1
 - Support latest contracts ABI (via API), incl. rework of contracts UI
@@ -191,7 +205,7 @@
 - Make the network selection clickable on network name (via bounty)
 - ... and a number of cleanups all around
 
-# 0.35.1
+## 0.35.1
 
 - Api 0.91.1, Util 1.2.1, Extension 0.10.1
 - Support for accounts added via Qr (for instance, the Parity Signer)
@@ -204,7 +218,7 @@
 - Fix account derivation with `///password`
 - Lots of component & maintainability cleanups
 
-# 0.34.1
+## 0.34.1
 
 - Kusama support
 - Full support for Substrate 2.x & Polkadot 0.5.0 networks
@@ -213,7 +227,7 @@
 - Basic Council, Parachains & Treasury apps
 - Moved ui-* packages to react-*
 
-# 0.33.1
+## 0.33.1
 
 - Allow for externally injected accounts (i.e. via extension, polkadot-js & SingleSource)
 - Links to extrnisics & addresses on Polkascan
@@ -231,39 +245,39 @@
 - Latest @polkadot/util & @polkadot/api
 - A large number of optimizations and smaller fixes
 
-# 0.32.1
+## 0.32.1
 
 - Support for Substrate 1.0 release & metadata v4
 - @polkadot/api 0.77.1
 
-# 0.31.1
+## 0.31.1
 
 - Cleanups, fixes and features around the poc-4 staking module
 - Number of UI enhancements
 
-# 0.30.1
+## 0.30.1
 
 - Staking page indicator for offline nodes (count & block)
 - Rework page tabs and content layouts
 - Cleanup of all UI summary headers
 - Emberic Elem support (replaces Dried Danta)
 
-# 0.29.1
+## 0.29.1
 
 - @polkadot/util & @polkadot/api 0.75.1
 
-# 0.28.1
+## 0.28.1
 
 - Support for substrate 1.0-rc
 
-# 0.27.1
+## 0.27.1
 
 - Bring in new staking & nominating functions
 - Swap default keyring accounts (on creation) to sr25519
 - New faster crypto algorithms
 - Misc. bug fixes all around
 
-# 0.26.1
+## 0.26.1
 
 - Swap keyring to HDKD derivation, mnemonic keys are now not backwards compatible with those created earlier. (Defaults are still for ed25519)
 - Swap crypto to new WASM-backed version (and remove libsodium dependency)
@@ -271,23 +285,23 @@
 - New mobile-friendly sidebar
 - Fix issues with nominating (old non-bonds interface)
 
-# 0.25.1
+## 0.25.1
 
 - Swap to publishing -beta.x on merge (non-breaking testing)
 
- # 0.24.1
+ ## 0.24.1
 
  Storage now handles Option type properly
 
- # 0.23.1
+ ## 0.23.1
 
  JavaScript console introduced
 
-# 0.22.1
+## 0.22.1
 
 - Use new Compact<Index> transaction format - this requires the latest binaries from either Polkadot or Substrate
 
-# 0.21.1
+## 0.21.1
 
 - PoC-3 support with latest Substrate master & Polkadot master
 - Add support for Charred Cherry (Substrate) and Alexander (Polkadot) testnets

+ 3 - 3
package.json

@@ -76,8 +76,8 @@
     "@babel/register": "^7.10.1",
     "@babel/runtime": "^7.10.1",
     "@pinata/sdk": "^1.1.9",
-    "@polkadot/dev": "^0.54.3",
-    "@polkadot/ts": "^0.3.24",
+    "@polkadot/dev": "^0.55.5",
+    "@polkadot/ts": "^0.3.25",
     "@types/bn.js": "^4.11.6",
     "@types/chart.js": "^2.9.21",
     "@types/file-saver": "^2.0.1",
@@ -94,7 +94,7 @@
     "concurrently": "^5.2.0",
     "dnslink-cloudflare": "^2.0.4",
     "electron": "8.3.0",
-    "electron-builder": "^22.6.1",
+    "electron-builder": "^22.7.0",
     "i18next-scanner": "^2.11.0",
     "react": "^16.13.1",
     "react-dom": "^16.13.1",

+ 1 - 1
packages/apps-electron/package.json

@@ -5,7 +5,7 @@
   "version": "0.44.0-beta.29",
   "dependencies": {
     "@babel/polyfill": "^7.10.1",
-    "@polkadot/dev": "^0.54.3",
+    "@polkadot/dev": "^0.55.5",
     "@polkadot/react-components": "0.44.0-beta.29"
   },
   "devDependencies": {

+ 1 - 1
packages/apps/package.json

@@ -15,7 +15,7 @@
   "dependencies": {
     "@babel/polyfill": "^7.10.1",
     "@babel/runtime": "^7.10.1",
-    "@polkadot/dev": "^0.54.3",
+    "@polkadot/dev": "^0.55.5",
     "@polkadot/react-components": "0.44.0-beta.29",
     "@polkadot/react-signer": "0.44.0-beta.29",
     "query-string": "^6.12.1"

+ 1 - 1
packages/page-accounts/package.json

@@ -13,7 +13,7 @@
   "dependencies": {
     "@babel/runtime": "^7.10.1",
     "@polkadot/react-components": "0.44.0-beta.29",
-    "@polkadot/react-qr": "^0.54.0-beta.3",
+    "@polkadot/react-qr": "^0.54.0-beta.4",
     "@polkadot/vanitygen": "^0.13.1",
     "detect-browser": "^5.1.0",
     "file-saver": "^2.0.2"

+ 1 - 1
packages/react-api/package.json

@@ -32,7 +32,7 @@
   "dependencies": {
     "@babel/runtime": "^7.10.1",
     "@polkadot/api": "^1.17.0-beta.5",
-    "@polkadot/extension-dapp": "^0.26.0-beta.6",
+    "@polkadot/extension-dapp": "^0.26.0-beta.8",
     "rxjs-compat": "^6.5.5"
   }
 }

+ 3 - 3
packages/react-components/package.json

@@ -13,10 +13,10 @@
     "@babel/runtime": "^7.10.1",
     "@polkadot/keyring": "^2.11.1",
     "@polkadot/react-api": "0.44.0-beta.29",
-    "@polkadot/react-identicon": "^0.54.0-beta.3",
+    "@polkadot/react-identicon": "^0.54.0-beta.4",
     "@polkadot/react-query": "0.44.0-beta.29",
-    "@polkadot/ui-keyring": "^0.54.0-beta.3",
-    "@polkadot/ui-settings": "^0.54.0-beta.3",
+    "@polkadot/ui-keyring": "^0.54.0-beta.4",
+    "@polkadot/ui-settings": "^0.54.0-beta.4",
     "chart.js": "^2.9.3",
     "codeflask": "^1.4.1",
     "i18next": "^19.4.5",

+ 1 - 1
packages/react-signer/package.json

@@ -12,6 +12,6 @@
   "dependencies": {
     "@babel/runtime": "^7.10.1",
     "@polkadot/react-components": "0.44.0-beta.29",
-    "@polkadot/react-qr": "^0.54.0-beta.3"
+    "@polkadot/react-qr": "^0.54.0-beta.4"
   }
 }

+ 11 - 5
scripts/ipfsUpload.js

@@ -16,8 +16,7 @@ const DST = 'packages/apps/build';
 const SRC = 'packages/apps/public';
 const WOPTS = { encoding: 'utf8', flag: 'w' };
 
-const token = process.env.GH_PAT || `x-access-token:${process.env.GITHUB_TOKEN}`;
-const repo = `https://${token}@github.com/${process.env.GITHUB_REPOSITORY}.git`;
+const repo = `https://${process.env.GH_PAT}@github.com/${process.env.GITHUB_REPOSITORY}.git`;
 const pinata = pinataSDK(process.env.PINATA_API_KEY, process.env.PINATA_SECRET_KEY);
 
 function writeFiles (name, content) {
@@ -28,7 +27,7 @@ function writeFiles (name, content) {
 
 function updateGh (hash) {
   execSync('git add --all .');
-  execSync(`git commit --no-status --quiet -m "[CI Skip] ${hash}
+  execSync(`git commit --no-status --quiet -m "[CI Skip] publish/ipfs ${hash}
 
 
 skip-checks: true"`);
@@ -67,11 +66,18 @@ async function unpin (exclude) {
   const result = await pinata.pinList({ status: 'pinned' });
 
   if (result.count > 1) {
-    const filtered = result.rows.map(({ ipfs_pin_hash: hash }) => hash).filter((hash) => hash !== exclude);
+    const filtered = result.rows
+      .map(({ ipfs_pin_hash: hash }) => hash)
+      .filter((hash) => hash !== exclude);
 
     if (filtered.length) {
       await Promise.all(
-        filtered.map((hash) => pinata.unpin(hash).then(() => console.log(`Unpinned ${hash}`)))
+        filtered.map((hash) =>
+          pinata
+            .unpin(hash)
+            .then(() => console.log(`Unpinned ${hash}`))
+            .catch(console.error)
+        )
       );
     }
   }

File diff ditekan karena terlalu besar
+ 379 - 103
yarn.lock


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini