chore(release): v0.3.8 #23
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: 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 |