This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
[OPTIC-RELEASE-AUTOMATION] release/v1.0.48 #156
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create a release | |
on: | |
workflow_dispatch: | |
inputs: | |
semver: | |
description: The semver to use | |
required: true | |
default: patch | |
type: choice | |
options: | |
- patch | |
- minor | |
- major | |
pull_request: | |
types: [closed] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Node.js runtime on build | |
uses: actions/setup-node@v4.0.1 | |
with: | |
node-version: 16 | |
- uses: nearform-actions/optic-release-automation-action@v4 | |
with: | |
github-token: ${{ secrets.github_token }} | |
semver: ${{ github.event.inputs.semver }} | |
commit-message: 'chore: release {version}' | |
sync-semver-tags: true | |
build-command: | | |
npm ci | |
npm run build |