Skip to content

build: release workflow #17

build: release workflow

build: release workflow #17

Workflow file for this run

name: release
on:
workflow_dispatch:
inputs:
version:
description: 'SemVer that will be used for publishing (e.g. "0.0.1")'
required: true
type: string
jobs:
prepare-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
<<<<<<< HEAD

Check failure on line 18 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
- name: Prepare ${{ inputs.version }} release
=======
- name: prepare ${{ inputs.version }} release
>>>>>>> 06583bf (build: release workflow)
run: |
git config user.name "think-it-account"
git config user.email "[email protected]"
sed -i 's/"version":.*/"version": "${{ inputs.version }}",/g' package.json
git add .
git commit -m "Prepare release ${{ inputs.version }}"
git push origin main
git tag --force v${{ inputs.version }}
git push --force origin v${{ inputs.version }}
<<<<<<< HEAD
- name: Create GitHub Release
=======
- name: github release
>>>>>>> 06583bf (build: release workflow)
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
tag: ${{ inputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
makeLatest: true
removeArtifacts: true
- name: publish
uses: ./.github/actions/npm-publish