chore(deps): update dependency @vitejs/plugin-react to v4 #16
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
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
updatesnapshots: | |
if: ${{ github.event.issue.pull_request && github.event.comment.body == '/update-snapshots'}} | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Load all commits | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get SHA and branch name | |
id: get-branch-and-sha | |
run: | | |
sha_and_branch=$(\ | |
curl \ | |
-H 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ | |
https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.issue.number }} \ | |
| jq -r '.head.sha," ",.head.ref'); | |
echo "::set-output name=sha::$(echo $sha_and_branch | cut -d " " -f 1)"; | |
echo "::set-output name=branch::$(echo $sha_and_branch | cut -d " " -f 2)" | |
- run: git fetch | |
- run: git checkout ${{ steps.get-branch-and-sha.outputs.branch }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- run: npx playwright install --with-deps chromium | |
- run: npm run build | |
- run: npm run test:e2e -- --update-snapshots | |
- run: | | |
git config user.name "GitHub actions" | |
git config user.email [email protected] | |
git add . | |
git commit -m "ci: update snapshots" | |
git push |