chore(build): replace rimraf with rm from nodejs (#245) #169
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: Main Preview | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| main: | |
| name: Build and Deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .nvmrc | |
| - name: Install Packages | |
| run: npm ci | |
| shell: bash | |
| - name: Build Storybook | |
| run: npx storybook build | |
| shell: bash | |
| - name: Upload to S3 | |
| uses: gravity-ui/preview-upload-to-s3-action@v1 | |
| with: | |
| src-path: storybook-static | |
| dest-path: /date-components/main/ | |
| s3-key-id: ${{ secrets.STORYBOOK_S3_KEY_ID }} | |
| s3-secret-key: ${{ secrets.STORYBOOK_S3_SECRET_KEY }} |