Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Mararok committed Mar 8, 2024
1 parent 8c803dd commit a573ef9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/prepare-release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Prepare Release

on:
workflow_dispatch:
Expand Down Expand Up @@ -53,18 +53,18 @@ jobs:
newVersion: '${{ env.NEW_VERSION }}'

# Commit
- name: Commit CHANGELOG.md and package.json changes and create tag
- name: Commit CHANGELOG.md and package.json changes
shell: bash
run: |
git add "package.json"
git add "CHANGELOG.md"
git commit -m "chore: release ${{ env.NEW_VERSION }}"
git push --follow-tags git push --set-upstream origin chore-prepare-release
git push git push --set-upstream origin chore-prepare-release
- name: Create Pull Request
run: |
curl \
-X POST \
-H "Authorization: token ${{ secrets..HEXANCORE_BOT_TOKEN }}" \
-H "Authorization: token ${{ secrets.HEXANCORE_BOT_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/pulls \
-d '{"title":"Prepare new version release: ${{ env.NEW_VERSION }}","head":"chore-prepare-release","base":"main","body":"Prepare new version release: ${{ env.NEW_VERSION }}"}'
13 changes: 2 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
name: Release
name: Publish

on:
workflow_dispatch:
inputs:
releaseType:
description: 'Release type (one of): patch, minor, major'
required: true
type: choice
options:
- patch
- minor
- major

jobs:
release:
publish:
permissions:
contents: write
id-token: write
Expand Down

0 comments on commit a573ef9

Please sign in to comment.