diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..0c85d1a8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release + +on: + push: + branches: + - 'alpha' + - 'beta' + - 'main' + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Project + uses: ./.github/actions/setup + + - name: Build Project + run: npm run build + + - name: Semantic Release + run: npx semantic-release diff --git a/release.config.js b/release.config.js new file mode 100644 index 00000000..2fa406a4 --- /dev/null +++ b/release.config.js @@ -0,0 +1,13 @@ +module.exports = { + branches: [ + 'main', + { + name: 'beta', + prerelease: true, + }, + { + name: 'alpha', + prerelease: true, + }, + ], +}; diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json index e07aaf3e..81a6f387 100644 --- a/tsconfig.eslint.json +++ b/tsconfig.eslint.json @@ -2,6 +2,7 @@ "extends": "./tsconfig.json", "files": [ ".eslintrc.js", + "release.config.js", "wallaby.js", ] }