diff --git a/.github/workflows/main-preview.yml b/.github/workflows/main-preview.yml index e76545ae6..6e2d27138 100644 --- a/.github/workflows/main-preview.yml +++ b/.github/workflows/main-preview.yml @@ -9,23 +9,23 @@ jobs: name: Build and Deploy runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: npm - - name: Install Packages - run: npm ci - shell: bash - - name: Build Storybook - run: npx sb build - shell: bash - - name: Upload to S3 - uses: gravity-ui/preview-upload-to-s3-action@v1 - with: - src-path: storybook-static - dest-path: /uikit/main/ - s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }} - s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }} + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: npm + - name: Install Packages + run: npm ci + shell: bash + - name: Build Storybook + run: npx sb build + shell: bash + - name: Upload to S3 + uses: gravity-ui/preview-upload-to-s3-action@v1 + with: + src-path: storybook-static + dest-path: /uikit/main/ + s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }} + s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }} diff --git a/.github/workflows/pr-preview-build.yml b/.github/workflows/pr-preview-build.yml index 5d60fa5e1..c323cc457 100644 --- a/.github/workflows/pr-preview-build.yml +++ b/.github/workflows/pr-preview-build.yml @@ -8,6 +8,6 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - uses: gravity-ui/preview-build-action@v2 - with: - node-version: 18 + - uses: gravity-ui/preview-build-action@v2 + with: + node-version: 18 diff --git a/.github/workflows/pr-preview-deploy.yml b/.github/workflows/pr-preview-deploy.yml index 99c3bb31a..84a337f14 100644 --- a/.github/workflows/pr-preview-deploy.yml +++ b/.github/workflows/pr-preview-deploy.yml @@ -4,7 +4,7 @@ on: workflow_run: workflows: ['PR Preview Build'] types: - - completed + - completed jobs: deploy: @@ -14,9 +14,9 @@ jobs: github.event.workflow_run.conclusion == 'success' runs-on: ubuntu-latest steps: - - uses: gravity-ui/preview-deploy-action@v2 - with: - project: uikit - github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }} - s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }} - s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }} + - uses: gravity-ui/preview-deploy-action@v2 + with: + project: uikit + github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }} + s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }} + s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 762e18dd5..364d893ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,4 +17,4 @@ jobs: npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }} node-version: 18 default-branch: ${{ github.ref_name != 'main' && github.ref_name || null }} - npm-dist-tag: ${{ github.ref_name != 'main' && 'untagged' || 'latest' }} \ No newline at end of file + npm-dist-tag: ${{ github.ref_name != 'main' && 'untagged' || 'latest' }}