Merge pull request #271 from openscript-ch/renovate/all-minor-patch #178
  
    
      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: Version packages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| version-packages: | |
| name: Version packages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Create Release Pull Request | |
| uses: changesets/action@v1 | |
| id: changesets | |
| with: | |
| commit: "chore: publish new release" | |
| title: "chore: publish new release" | |
| env: | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| - name: Get current branch | |
| id: get_branch | |
| run: echo "CURRENT_BRANCH=$(git branch --show-current)" >> $GITHUB_ENV | |
| - name: Update lock file | |
| if: env.CURRENT_BRANCH == 'changeset-release/master' | |
| run: pnpm install --lockfile-only | |
| - name: Commit lock file | |
| if: env.CURRENT_BRANCH == 'changeset-release/master' | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "chore: update lock file" | |
| branch: changeset-release/master |