Skip to content

Commit

Permalink
Merge branch 'AssetHubsReservedAmount' of https://github.com/AMIRKHAN…
Browse files Browse the repository at this point in the history
…EF/polkagate-extension into AssetHubsReservedAmount
  • Loading branch information
AMIRKHANEF committed Sep 8, 2024
2 parents 579ba40 + f734a4a commit b7cc69d
Show file tree
Hide file tree
Showing 387 changed files with 19,518 additions and 12,929 deletions.
29 changes: 0 additions & 29 deletions .eslintrc.js

This file was deleted.

80 changes: 69 additions & 11 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,81 @@
name: ci
name: CI Workflow

on:
push:
branches: [main]
pull_request:

types: [opened, edited, synchronize]

jobs:
pr:
check-title:
name: Check PR Title
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Check PR Title
uses: actions/github-script@v6
with:
script: |
const pr = context.payload.pull_request;
if (!pr) {
core.setFailed('No pull request context available.');
return;
}
const title = pr.title;
const prefixPattern = /^(feat|fix|chore|docs|style|refactor|perf|test):\s.+/;
if (!prefixPattern.test(title)) {
core.setFailed(`PR title does not follow the correct format. Example: feat: Add new feature.`);
}
build:
strategy:
matrix:
step: ['build']
name: ${{ matrix.step }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: ${{ matrix.step }}
run: |
yarn install --immutable | grep -v 'YN0013'
yarn ${{ matrix.step }}
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: Enable Corepack
run: corepack enable

- name: Set up correct Yarn version
run: corepack prepare [email protected] --activate

- name: Install dependencies without immutable
run: yarn install

- name: Verify dependencies with immutable
run: yarn install --immutable | grep -v 'YN0013'

- name: ${{ matrix.step }}
run: yarn ${{ matrix.step }}

release:
name: Release
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: Enable Corepack
run: corepack enable

- name: Set up correct Yarn version
run: corepack prepare [email protected] --activate

- name: Install dependencies
run: yarn install

- name: Run Semantic Release
env:
GH_TOKEN: ${{ secrets.SR_TOKEN }}
run: npx semantic-release
2 changes: 2 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
npx commitlint --edit "$1"
Empty file added .husky/pre-commit
Empty file.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18.18
9 changes: 9 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"branches": ["main"],
"repositoryUrl": "https://github.com/polkagate/extension.git",
"plugins": [
"@semantic-release/changelog",
"@semantic-release/git",
"@semantic-release/github"
]
}
785 changes: 0 additions & 785 deletions .yarn/releases/yarn-3.2.0.cjs

This file was deleted.

1,883 changes: 1,883 additions & 0 deletions .yarn/releases/yarn-4.1.1.cjs

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
compressionLevel: mixed

enableGlobalCache: false

enableImmutableInstalls: false

enableProgressBars: false

nodeLinker: node-modules
logFilters:
- code: YN0013
level: discard

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.2.0.cjs
yarnPath: .yarn/releases/yarn-4.1.1.cjs
Loading

0 comments on commit b7cc69d

Please sign in to comment.