Skip to content

chore(release): v0.3.8 #23

chore(release): v0.3.8

chore(release): v0.3.8 #23

Workflow file for this run

name: Github release
env:
MAIN_VERSION: 1
SECOND_VERSION: 1.1
on:
push:
branches:
- main
jobs:
Deploy:
runs-on: ubuntu-latest
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Get npm version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: Config git
run: |
git config --local user.name "bot"
git config --local user.email "[email protected]"
- name: Realese
uses: ncipollo/release-action@v1
with:
tag: v${{ steps.package-version.outputs.current-version}}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Reset v${{ env.MAIN_VERSION }}
run: |
git tag -a v${{ env.MAIN_VERSION }} -m 'Sync with v${{ steps.package-version.outputs.current-version}}'
git push origin v${{ env.MAIN_VERSION }} --force
- name: Reset v${{ env.SECOND_VERSION }}
run: |
git tag -a v${{ env.SECOND_VERSION }} -m 'Sync with v${{ steps.package-version.outputs.current-version}}'
git push origin v${{ env.SECOND_VERSION }} --force