-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'AssetHubsReservedAmount' of https://github.com/AMIRKHAN…
…EF/polkagate-extension into AssetHubsReservedAmount
- Loading branch information
Showing
387 changed files
with
19,518 additions
and
12,929 deletions.
There are no files selected for viewing
This file was deleted.
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
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 |
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,2 @@ | ||
#!/bin/sh | ||
npx commitlint --edit "$1" |
Empty file.
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 |
---|---|---|
@@ -1 +1 @@ | ||
16 | ||
18.18 |
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,9 @@ | ||
{ | ||
"branches": ["main"], | ||
"repositoryUrl": "https://github.com/polkagate/extension.git", | ||
"plugins": [ | ||
"@semantic-release/changelog", | ||
"@semantic-release/git", | ||
"@semantic-release/github" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
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
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 |
Oops, something went wrong.