Skip to content

Bump vite from 5.4.2 to 5.4.11 #188

Bump vite from 5.4.2 to 5.4.11

Bump vite from 5.4.2 to 5.4.11 #188

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
- changeset-release/main
workflow_dispatch:
# Snapit trigger - runs when /snapit comment is made on a PR
issue_comment:
types:
- created
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
checks:
name: Checks 📝
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
uses: ./.github/workflows/checks.yml
deploy:
name: Deploy 🚀
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
needs: [checks]
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
id-token: write # Required for OIDC authentication
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/workflows/actions/prepare
- run: pnpm run type-check
- run: pnpm run build
- run: pnpm run deploy
env:
NPM_TOKEN: '' # Empty string forces OIDC
NPM_CONFIG_PROVENANCE: true
preview:
name: Preview 🔮
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref_name == 'changeset-release/main') }}
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
id-token: write # Required for OIDC authentication
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ./.github/workflows/actions/prepare
# Changeset entries are consumed on this branch. We need to reset the
# changeset files so that the snapshot command knows the correct packages,
# and does not accidentally publish the new, non-preview version numbers
# prematurely.
- name: Reset changeset entries
run: |
git fetch origin main
git checkout origin/main -- .changeset
- run: pnpm run type-check
- run: pnpm run build
- name: Deploy preview versions to NPM
run: |
pnpm changeset version --snapshot preview
pnpm changeset publish --tag preview --no-git-tag
env:
GITHUB_TOKEN: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}
NPM_TOKEN: '' # Empty string forces OIDC
NPM_CONFIG_PROVENANCE: true
# Snapit job - runs when /snapit comment is made on a PR
snapit:
name: Snapit
if: ${{ github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.comment.body == '/snapit' }}
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
id-token: write # Required for OIDC authentication
steps:
# WARNING: DO NOT RUN ANY CUSTOM LOCAL SCRIPT BEFORE RUNNING THE SNAPIT ACTION
# This action can be executed by 3rd party users and it should not be able to run arbitrary code from a PR.
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}
- uses: ./.github/workflows/actions/prepare
- name: Create snapshot
uses: Shopify/snapit@v0.1.0
env:
GITHUB_TOKEN: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}
NPM_TOKEN: '' # Empty string forces OIDC
NPM_CONFIG_PROVENANCE: true
with:
build_script: pnpm build:snapit
comment_command: /snapit