entry point #5
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: 'version' | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- run: | | |
npm install | |
npm run build | |
npm run package | |
- name: release | |
run: | | |
set -eux | |
git config --global user.email "[email protected]" | |
git config --global user.name "Cyan [Auto Commit]" | |
git fetch --all | |
git add -f dist | |
git commit -am "release ${{ github.sha }}" | |
git checkout release | |
git merge --allow-unrelated-histories -X theirs main -m "merge ${{ github.sha }}" | |
git push origin release:release |