[Auto release] release 1.0.43 #147
This file contains hidden or 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: Sync main to develop after release | |
| on: | |
| pull_request: | |
| types: | |
| - closed | |
| branches: | |
| - main | |
| jobs: | |
| if_merged: | |
| if: github.event.pull_request.merged == true | |
| runs-on: macos-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| strategy: | |
| matrix: | |
| node-version: [18.x] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - run: | | |
| git config user.name ${{ github.actor }} | |
| git config user.email ${{ github.actor }}@users.noreply.github.com | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| cache-dependency-path: './common/config/rush/pnpm-lock.yaml' | |
| # Install rush | |
| - name: Install native deps for node-canvas (macOS) | |
| if: runner.os == 'macOS' | |
| run: | | |
| brew update | |
| brew install pkg-config cairo pango libpng jpeg giflib librsvg | |
| - name: Install native deps for node-canvas (Linux) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential pkg-config libcairo2-dev libpango1.0-dev libpng-dev libjpeg-dev libgif-dev librsvg2-dev | |
| - name: Install rush | |
| run: node common/scripts/install-run-rush.js install --bypass-policy | |
| - name: Get version | |
| id: package-version | |
| uses: xile611/read-package-version-action@main | |
| with: | |
| path: packages/vrender | |
| - name: Create a new branch | |
| run: | | |
| git config core.hooksPath /dev/null | |
| git status | |
| git checkout -b sync/main-${{ steps.package-version.outputs.current_version }} | |
| git push --no-verify origin sync/main-${{ steps.package-version.outputs.current_version }} | |
| - name: Create Pull Request | |
| uses: dustinirving/create-pr@v1.0.2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| title: '[Auto Sync] Sync the code from branch main to branch develop after release ${{ steps.package-version.outputs.current_version }}' | |
| base: develop | |
| head: sync/main-${{ steps.package-version.outputs.current_version }} | |
| reviewers: xile611 | |
| body: 'Sync the code from branch main to branch develop after release ${{ steps.package-version.outputs.current_version }}' |