From 25cf13ae57084be63d8f42581b7c6b5c976930ed Mon Sep 17 00:00:00 2001 From: Alexander Shelepenok Date: Sat, 16 Apr 2022 15:02:30 +0000 Subject: [PATCH] feat(workflows): add release workflow --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d7767fd --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ + +name: Release + +on: + push: + branches: + - master + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: 14.17 + + - name: Install dependencies + run: npm ci + + - name: Run tests + run: npm run test + + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npm run semantic-release