diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..98d9acc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: Release Package +on: + push: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: + - 16.x + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npx semantic-release diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000..3258f22 --- /dev/null +++ b/.releaserc @@ -0,0 +1,11 @@ +{ + "branches": [ + "main" + ], + "ci": true, + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/github" + ] +}