Skip to content

create-release

create-release #21

Workflow file for this run

name: create-release
on:
workflow_dispatch:
inputs:
environment:
type: choice
description: 'Environment to release to (staging or production)'
options:
- staging
- production
required: true
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: checkout-repo
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
token: ${{ secrets.KIVA_ROBOT_GITHUB_PAT }}
- name: checkout-actions
uses: actions/checkout@v4
with:
repository: kiva/github-actions
token: ${{ secrets.KIVA_ROBOT_GITHUB_PAT }}
path: .github/
- name: create-release
id: release
uses: ./.github/actions/create-release
env:
GITHUB_PAT: ${{ secrets.KIVA_ROBOT_GITHUB_PAT }}
with:
environment: ${{ github.event.inputs.environment }}
write_to_file: "true"
- name: update-package-file
uses: ./.github/actions/semantic-package-json-update
with:
new_version: ${{ steps.release.outputs.tag }}