From 86ac61a123ec04a6cd77654fd799ac6bcbbd25a6 Mon Sep 17 00:00:00 2001 From: Jerry Wang Date: Tue, 13 Feb 2024 13:15:19 +0800 Subject: [PATCH] ci: add release workflow --- .eslintignore | 1 - .eslintrc.json | 17 ----------------- .github/workflows/release.yml | 23 +++++++++++++++++++++++ tsconfig.build.json | 7 ------- 4 files changed, 23 insertions(+), 25 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc.json create mode 100644 .github/workflows/release.yml delete mode 100644 tsconfig.build.json diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 1521c8b..0000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -dist diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 1c2a8c9..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "env": { - "es2021": true, - "node": true, - "jest": true - }, - "extends": ["standard"], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": 12, - "sourceType": "module" - }, - "plugins": ["@typescript-eslint"], - "rules": { - "space-before-function-paren": "off" - } -} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..47d7c6d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Release + run: npx changelogithub + env: + GITHUB_TOKEN: ${{github.token}} diff --git a/tsconfig.build.json b/tsconfig.build.json deleted file mode 100644 index 88f2696..0000000 --- a/tsconfig.build.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "declaration": false - }, - "exclude": ["**/__tests__", "**/__mocks__"] -}