diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..98128c7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Create Release + +on: + workflow_dispatch: + inputs: + version: + description: 'Semantic version (major | minor | patch | premajor | preminor | prepatch | prerelease)' + default: 'patch' + required: true + +jobs: + version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Npm install + run: npm ci + - name: Create release + run: npm run release -- --preset eslint --${{ github.event.inputs.version }} +