|
39 | 39 | steps: |
40 | 40 | # wait for required packages to be available |
41 | 41 | - name: Wait for packages to be available on NPM |
| 42 | + if: ${{ github.event.action != 'closed' }} |
42 | 43 | run: | |
43 | 44 | echo "Waiting for packages to be available: ${PACKAGES}" |
44 | 45 | |
@@ -73,43 +74,38 @@ jobs: |
73 | 74 |
|
74 | 75 | # Build the example |
75 | 76 | - uses: actions/checkout@v5 |
| 77 | + if: ${{ github.event.action != 'closed' }} |
76 | 78 | with: |
77 | 79 | fetch-depth: 0 |
78 | | - # sparse-checkout: | |
79 | | - # packages/components |
80 | | - # pnpm-workspace.yaml |
81 | | - # pnpm-lock.yaml |
82 | | - # sparse-checkout-cone-mode: false |
83 | 80 |
|
84 | 81 | - name: Enable corepack and install pnpm |
| 82 | + if: ${{ github.event.action != 'closed' }} |
85 | 83 | run: | |
86 | 84 | corepack enable |
87 | 85 |
|
88 | 86 | - name: Set up Node.js |
| 87 | + if: ${{ github.event.action != 'closed' }} |
89 | 88 | uses: actions/setup-node@v6 |
90 | 89 | with: |
91 | 90 | node-version: '24' |
92 | 91 | cache: 'pnpm' |
93 | 92 |
|
94 | 93 | - name: Install dependencies |
| 94 | + if: ${{ github.event.action != 'closed' }} |
95 | 95 | run: pnpm install --filter='@infineon/infineon-design-system-stencil' --no-frozen-lockfile |
96 | 96 |
|
97 | 97 | - name: Update ${{ inputs.name }} to use published version |
| 98 | + if: ${{ github.event.action != 'closed' }} |
98 | 99 | working-directory: packages/components |
99 | 100 | run: | |
100 | 101 | pnpm version ${{ inputs.package-version }} --no-git-tag-version |
101 | 102 | |
102 | 103 | - name: Build Storybook |
| 104 | + if: ${{ github.event.action != 'closed' }} |
103 | 105 | run: | |
104 | 106 | pnpm --filter='@infineon/infineon-design-system-stencil' build-storybook |
105 | 107 | |
106 | 108 | # Deploy |
107 | | - # PR Preview Action requires sparse checkout to be disabled |
108 | | - - name: Disable sparse checkout for deployment |
109 | | - run: | |
110 | | - git config core.sparseCheckout false || true |
111 | | - rm -f .git/info/sparse-checkout || true |
112 | | -
|
113 | 109 | - name: Deploy PR Preview |
114 | 110 | if: ${{ inputs.deployment == 'pr' }} |
115 | 111 | id: deploy-pr |
|
0 commit comments