From 3b0fa083dedd2eeed5d62e5161c0edd3fa6cfbc3 Mon Sep 17 00:00:00 2001 From: Satinder Singh Date: Sat, 13 Jan 2024 14:07:41 -0800 Subject: [PATCH] feat: support releases with semantic versioning --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e4778bc --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Build + +on: + push: + branches: + - master + +jobs: + release-and-push: + name: Release And Push + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: -1 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Fetch Previous version + id: get-previous-tag + uses: actions-ecosystem/action-get-latest-tag@v1.6.0 + + - name: Release + run: yarn global add semantic-release@17.4.4 && semantic-release + env: + GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }} \ No newline at end of file