From 46f964198526535d62d10d5682baa3a43c39d2d4 Mon Sep 17 00:00:00 2001 From: Jose Bravo Date: Thu, 16 Dec 2021 11:08:23 +0100 Subject: [PATCH] feat: Use release-automation (#125) * feat: Use release-automation * chore: add a build step * Update .github/workflows/release.yml Co-authored-by: Manuel Spigolon * Update .github/workflows/release.yml Co-authored-by: Manuel Spigolon * Update .github/workflows/release.yml Co-authored-by: Manuel Spigolon Co-authored-by: Manuel Spigolon --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 00000000..4a3688b9 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: release + +on: + workflow_dispatch: + inputs: + semver: + description: 'The semver to use' + required: true + default: 'patch' + pull_request: + types: [closed] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Node.js runtime on build + uses: actions/setup-node@v2 + with: + node-version: 16 + + - uses: nearform/optic-release-automation-action@v2 + with: + github-token: ${{ secrets.github_token }} + semver: ${{ github.event.inputs.semver }} + sync-semver-tags: true + build-command: | + echo 'installing husky hooks..' + npm ci