10 changed files with 118 additions and 22 deletions
@ -1,36 +1,26 @@ |
|||||
name: CI |
name: CI |
||||
|
|
||||
# Controls when the workflow will run |
on: push |
||||
on: |
|
||||
# Triggers the workflow on push or pull request events but only for the master branch |
|
||||
push: |
|
||||
branches: [master] |
|
||||
pull_request: |
|
||||
branches: [master] |
|
||||
|
|
||||
# Allows you to run this workflow manually from the Actions tab |
|
||||
workflow_dispatch: |
|
||||
|
|
||||
jobs: |
jobs: |
||||
build-and-package: |
build-and-package: |
||||
runs-on: ubuntu-latest |
runs-on: ubuntu-latest |
||||
|
|
||||
steps: |
steps: |
||||
# Checks-out repository |
|
||||
- name: Checkout |
- name: Checkout |
||||
uses: actions/checkout@v2 |
uses: actions/checkout@v2 |
||||
- uses: pnpm/[email protected] |
- uses: pnpm/[email protected] |
||||
with: |
with: |
||||
version: latest |
version: latest |
||||
- uses: actions/setup-node@v3 |
|
||||
with: |
|
||||
node-version: latest |
|
||||
- run: pnpm install |
|
||||
- run: pnpm format:check |
|
||||
- run: pnpm build |
|
||||
- run: pnpm package |
|
||||
|
|
||||
# Upload Artifact |
- name: Install Dependencies |
||||
|
run: pnpm install |
||||
|
|
||||
|
- name: Build Package |
||||
|
run: pnpm build |
||||
|
|
||||
|
- name: Package Output |
||||
|
run: pnpm package |
||||
|
|
||||
- name: Upload Artifact |
- name: Upload Artifact |
||||
uses: "marvinpinto/action-automatic-releases@latest" |
uses: "marvinpinto/action-automatic-releases@latest" |
||||
with: |
with: |
||||
|
|||||
@ -0,0 +1,27 @@ |
|||||
|
name: Nightly |
||||
|
on: |
||||
|
schedule: |
||||
|
- cron: 0 8 * * 1-5 |
||||
|
workflow_dispatch: {} |
||||
|
|
||||
|
jobs: |
||||
|
trunk_check: |
||||
|
name: Trunk Check Upload |
||||
|
runs-on: ubuntu-latest |
||||
|
|
||||
|
steps: |
||||
|
- name: Checkout |
||||
|
uses: actions/checkout@v3 |
||||
|
|
||||
|
- name: Setup pnpm |
||||
|
uses: pnpm/[email protected] |
||||
|
with: |
||||
|
version: latest |
||||
|
|
||||
|
- name: Install Dependencies |
||||
|
run: pnpm install |
||||
|
|
||||
|
- name: Trunk Check |
||||
|
uses: trunk-io/trunk-action@v1 |
||||
|
with: |
||||
|
trunk-token: ${{ secrets.TRUNK_TOKEN }} |
||||
@ -0,0 +1,21 @@ |
|||||
|
name: Pull Request |
||||
|
|
||||
|
on: pull_request |
||||
|
|
||||
|
jobs: |
||||
|
build: |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- name: Checkout code |
||||
|
uses: actions/checkout@v3 |
||||
|
|
||||
|
- name: Setup pnpm |
||||
|
uses: pnpm/[email protected] |
||||
|
with: |
||||
|
version: latest |
||||
|
|
||||
|
- name: Install Dependencies |
||||
|
run: pnpm install |
||||
|
|
||||
|
- name: Build Package |
||||
|
run: pnpm build |
||||
@ -0,0 +1,7 @@ |
|||||
|
*out |
||||
|
*logs |
||||
|
*actions |
||||
|
*notifications |
||||
|
plugins |
||||
|
user_trunk.yaml |
||||
|
user.yaml |
||||
@ -0,0 +1,10 @@ |
|||||
|
# Autoformatter friendly markdownlint config (all formatting rules disabled) |
||||
|
default: true |
||||
|
blank_lines: false |
||||
|
bullet: false |
||||
|
html: false |
||||
|
indentation: false |
||||
|
line_length: false |
||||
|
spaces: false |
||||
|
url: false |
||||
|
whitespace: false |
||||
@ -0,0 +1,14 @@ |
|||||
|
module.exports = { |
||||
|
plugins: [ |
||||
|
{ |
||||
|
name: "preset-default", |
||||
|
params: { |
||||
|
overrides: { |
||||
|
removeViewBox: false, // https://github.com/svg/svgo/issues/1128
|
||||
|
sortAttrs: true, |
||||
|
removeOffCanvasPaths: true |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
] |
||||
|
}; |
||||
@ -0,0 +1,28 @@ |
|||||
|
version: 0.1 |
||||
|
cli: |
||||
|
version: 1.3.2 |
||||
|
plugins: |
||||
|
sources: |
||||
|
- id: trunk |
||||
|
ref: v0.0.8 |
||||
|
uri: https://github.com/trunk-io/plugins |
||||
|
lint: |
||||
|
enabled: |
||||
|
- [email protected] |
||||
|
- [email protected] |
||||
|
- [email protected] |
||||
|
- [email protected] |
||||
|
- git-diff-check |
||||
|
- [email protected] |
||||
|
- [email protected] |
||||
|
runtimes: |
||||
|
enabled: |
||||
|
- [email protected] |
||||
|
- [email protected] |
||||
|
actions: |
||||
|
disabled: |
||||
|
- trunk-announce |
||||
|
- trunk-check-pre-push |
||||
|
- trunk-fmt-pre-commit |
||||
|
enabled: |
||||
|
- trunk-upgrade-available |
||||
@ -1,6 +1,5 @@ |
|||||
{ |
{ |
||||
"github": { |
"github": { |
||||
"silent": true |
"silent": true |
||||
}, |
} |
||||
"rewrites": [{ "source": "/(.*)", "destination": "/" }] |
|
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue