From 79bb73483f5f6b18800b50db7438639068ed872c Mon Sep 17 00:00:00 2001 From: Sven Date: Wed, 18 May 2022 22:46:33 +0200 Subject: [PATCH] fix(deploy): add dry release for testing --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5136012..b864f67 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,3 +32,30 @@ jobs: env: GH_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + release-dry: + if: github.ref != 'refs/heads/master' + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 14.x + + - name: Install + run: npm i + + - name: build + run: npm run build + + - name: Release + run: npm run semantic-release-dry + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}