Skip to content

Commit 7f8cd56

Browse files
0xGorilla0xngwei3erHase
authored andcommitted
chore(release): 1.0.0-beta.1
Co-authored-by: 0xng <ng@defi.sucks> Co-authored-by: wei3erHase <wei3erhase@defi.sucks>
0 parents  commit 7f8cd56

Some content is hidden

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

44 files changed

+7926
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**Reproduction steps**
13+
14+
1. Go to '...'
15+
2. Click on '....'
16+
3. Scroll down to '....'
17+
4. See error
18+
19+
**Expected behavior**
20+
A clear and concise description of what you expected to happen.
21+
22+
**Screenshots**
23+
If applicable, add screenshots to help explain your problem.
24+
25+
**System Specs:**
26+
27+
- OS:
28+
- Package Version (or commit hash):
29+
30+
**Additional context**
31+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ""
5+
labels: ""
6+
assignees: ""
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**Description**
2+
A clear and concise description of the features you're adding in this pull request.
3+
4+
**Metadata**
5+
6+
- Fixes #[Link to Issue]

.github/workflows/canary.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Canary release
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
canary-publish:
7+
name: Publish Packages (canary)
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: "14.x"
15+
registry-url: "https://registry.npmjs.org"
16+
- run: yarn
17+
- run: yarn build
18+
- run: yarn version --new-version "0.0.0-${GITHUB_SHA::8}" --no-git-tag-version
19+
- run: npm publish --access public --tag canary
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/lint.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Lint
2+
3+
on: [push]
4+
5+
jobs:
6+
files:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Check out github repository
11+
uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 1
14+
15+
- name: Cache node modules
16+
uses: actions/cache@v2
17+
env:
18+
cache-name: cache-node-modules
19+
with:
20+
path: ~/.npm
21+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
22+
restore-keys: |
23+
${{ runner.os }}-build-${{ env.cache-name }}-
24+
${{ runner.os }}-build-
25+
${{ runner.os }}-
26+
- name: Install node
27+
uses: actions/setup-node@v1
28+
with:
29+
node-version: "12.x"
30+
31+
- name: Install dependencies
32+
run: yarn --frozen-lockfile
33+
34+
- name: Run linter
35+
run: yarn run lint:check
36+
37+
commits:
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- name: Check out github repository
42+
uses: actions/checkout@v2
43+
with:
44+
fetch-depth: 0
45+
46+
- name: Run commitlint
47+
uses: wagoid/commitlint-github-action@v2

.github/workflows/release.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build, tag, and publish a release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
tag:
10+
name: Create tag for new version
11+
runs-on: ubuntu-latest
12+
outputs:
13+
tag_name: ${{ steps.create_new_tag.outputs.tag }}
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 2
18+
- uses: salsify/action-detect-and-tag-new-version@v2
19+
id: create_new_tag
20+
21+
release:
22+
name: Create release
23+
runs-on: ubuntu-latest
24+
needs: tag
25+
if: needs.tag.outputs.tag_name
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions/create-release@v1
29+
id: create_release
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
tag_name: ${{ needs.tag.outputs.tag_name }}
34+
release_name: ${{ needs.tag.outputs.tag_name }}
35+
draft: false
36+
prerelease: false
37+
38+
publish:
39+
name: Build and publish
40+
runs-on: ubuntu-latest
41+
needs: tag
42+
if: needs.tag.outputs.tag_name
43+
steps:
44+
- uses: actions/checkout@v2
45+
- uses: actions/setup-node@v2
46+
with:
47+
node-version: "14.x"
48+
registry-url: "https://registry.npmjs.org"
49+
- run: yarn
50+
- run: yarn build
51+
- run: npm publish --access public
52+
env:
53+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# General
2+
node_modules
3+
.DS_STORE
4+
yarn-error.log
5+
dist
6+
build
7+
_build

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run lint:fix

0 commit comments

Comments
 (0)