Skip to content

Commit b7cc69d

Browse files
committed
Merge branch 'AssetHubsReservedAmount' of https://github.com/AMIRKHANEF/polkagate-extension into AssetHubsReservedAmount
2 parents 579ba40 + f734a4a commit b7cc69d

File tree

387 files changed

+19518
-12929
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

387 files changed

+19518
-12929
lines changed

.eslintrc.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/ci-workflow.yml

Lines changed: 69 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,81 @@
1-
name: ci
1+
name: CI Workflow
22

33
on:
44
push:
55
branches: [main]
66
pull_request:
7-
7+
types: [opened, edited, synchronize]
8+
89
jobs:
9-
pr:
10+
check-title:
11+
name: Check PR Title
12+
if: github.event_name == 'pull_request'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check PR Title
16+
uses: actions/github-script@v6
17+
with:
18+
script: |
19+
const pr = context.payload.pull_request;
20+
if (!pr) {
21+
core.setFailed('No pull request context available.');
22+
return;
23+
}
24+
const title = pr.title;
25+
const prefixPattern = /^(feat|fix|chore|docs|style|refactor|perf|test):\s.+/;
26+
if (!prefixPattern.test(title)) {
27+
core.setFailed(`PR title does not follow the correct format. Example: feat: Add new feature.`);
28+
}
29+
30+
build:
1031
strategy:
1132
matrix:
1233
step: ['build']
1334
name: ${{ matrix.step }}
1435
runs-on: ubuntu-latest
1536
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3
18-
with:
19-
node-version: 'lts/*'
20-
- name: ${{ matrix.step }}
21-
run: |
22-
yarn install --immutable | grep -v 'YN0013'
23-
yarn ${{ matrix.step }}
37+
- uses: actions/checkout@v3
38+
39+
- uses: actions/setup-node@v3
40+
with:
41+
node-version: 'lts/*'
42+
43+
- name: Enable Corepack
44+
run: corepack enable
45+
46+
- name: Set up correct Yarn version
47+
run: corepack prepare [email protected] --activate
48+
49+
- name: Install dependencies without immutable
50+
run: yarn install
51+
52+
- name: Verify dependencies with immutable
53+
run: yarn install --immutable | grep -v 'YN0013'
54+
55+
- name: ${{ matrix.step }}
56+
run: yarn ${{ matrix.step }}
57+
58+
release:
59+
name: Release
60+
needs: [build]
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v3
64+
65+
- uses: actions/setup-node@v3
66+
with:
67+
node-version: 'lts/*'
68+
69+
- name: Enable Corepack
70+
run: corepack enable
71+
72+
- name: Set up correct Yarn version
73+
run: corepack prepare [email protected] --activate
74+
75+
- name: Install dependencies
76+
run: yarn install
77+
78+
- name: Run Semantic Release
79+
env:
80+
GH_TOKEN: ${{ secrets.SR_TOKEN }}
81+
run: npx semantic-release

.husky/commit-msg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
npx commitlint --edit "$1"

.husky/pre-commit

Whitespace-only changes.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18.18

.releaserc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"branches": ["main"],
3+
"repositoryUrl": "https://github.com/polkagate/extension.git",
4+
"plugins": [
5+
"@semantic-release/changelog",
6+
"@semantic-release/git",
7+
"@semantic-release/github"
8+
]
9+
}

.yarn/releases/yarn-3.2.0.cjs

Lines changed: 0 additions & 785 deletions
This file was deleted.

.yarn/releases/yarn-4.1.1.cjs

Lines changed: 1883 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
15
enableImmutableInstalls: false
26

37
enableProgressBars: false
48

5-
nodeLinker: node-modules
9+
logFilters:
10+
- code: YN0013
11+
level: discard
612

7-
plugins:
8-
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
9-
spec: "@yarnpkg/plugin-interactive-tools"
10-
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
11-
spec: "@yarnpkg/plugin-version"
13+
nodeLinker: node-modules
1214

13-
yarnPath: .yarn/releases/yarn-3.2.0.cjs
15+
yarnPath: .yarn/releases/yarn-4.1.1.cjs

0 commit comments

Comments
 (0)