🐛 fix: ci/cd

Signed-off-by: Pauline <git@ethanlibs.co>
This commit is contained in:
Pauline 2024-08-05 03:42:06 +02:00
parent 880727c501
commit 13580a0a2c
No known key found for this signature in database
GPG key ID: 722BB181973296AE
5 changed files with 20 additions and 6 deletions

File diff suppressed because one or more lines are too long

View file

@ -98,11 +98,11 @@ async function run(): Promise<void> {
);
if (code !== 0)
core.setFailed(`reviewdog exited with status code: ${code}`);
throw new Error(`reviewdog exited with status code: ${code}`);
}
catch (error) {
if (error instanceof Error)
core.setFailed(error.message);
throw error;
}
finally {
try {

View file

@ -2,7 +2,7 @@ name: Build
on:
push:
branches: ['main']
branches: [main]
pull_request:
types: [opened, synchronize]
merge_group:
@ -46,7 +46,7 @@ jobs:
# run: pnpm test:es
rust:
name: Rust Checks
name: Rustfmt
runs-on: ubuntu-22.04
timeout-minutes: 10
permissions:

View file

@ -4,6 +4,20 @@ on:
push:
branches:
- main
paths-ignore:
- README.md
- CHANGELOG.md
- package.json
- LICENSE
- CONTRIBUTING.md
- TODO.md
- .editorconfig
- .vscode/*
- apps/frontend/*
- packages/distribution/*
- packages/client/*
- packages/patches/*
- packages/scripts/*
schedule:
- cron: '0 0 * * *'
pull_request:

View file

@ -118,7 +118,7 @@ jobs:
profile: release
release:
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
name: Create Release
needs: desktop