👻 Bump rollup from 4.54.0 to 4.57.1 in the rollup group (#907) #28
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: Tag Dist Build | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| - "release/*" | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| concurrency: | |
| group: tag-dist | |
| jobs: | |
| tag-dist: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| path: build | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Install | |
| working-directory: build | |
| run: npm ci --verbose --ignore-scripts --no-audit | |
| - name: Build | |
| working-directory: build | |
| run: npm run build | |
| - name: Clone for publishing | |
| shell: bash | |
| env: | |
| SOURCE: https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git | |
| run: | | |
| git config --global user.name "${GITHUB_ACTOR}" | |
| git config --global user.email "${GITHUB_ACTOR}@users.noreply.${INPUT_ORGANIZATION_DOMAIN}" | |
| git clone "$SOURCE" publish | |
| cd publish | |
| git fetch --tags | |
| git fetch origin ${{ github.ref_name }}:${{ github.ref_name }} 2>/dev/null || true | |
| git checkout publish/${{ github.ref_name }} 2>/dev/null || git checkout -b publish/${{ github.ref_name }} | |
| git merge ${{ github.ref_name }} -X theirs | |
| - name: Copy dist folder | |
| shell: bash | |
| run: | | |
| rm -Rf publish/client/dist | |
| cp -a build/client/dist publish/client/ | |
| - name: Commit and Tag the static dist dir | |
| working-directory: publish | |
| shell: bash | |
| run: | | |
| git add -f client/dist | |
| if [ -n "$(git diff --cached)" ]; then | |
| git commit -m "Checkin dist dir" | |
| else | |
| echo "No changes detected" | |
| fi | |
| git tag static-${{ github.ref_name }} --force | |
| git push --set-upstream origin publish/${{ github.ref_name }} | |
| git push origin static-${{ github.ref_name }} --force |