@@ -170,68 +170,3 @@ jobs:
170170 repo: context.repo,
171171 prNumber: context.payload.pull_request.number
172172 })
173-
174- deploy-docs :
175- name : ' Prepare Docs for the Review'
176- runs-on : ubuntu-latest
177- environment :
178- name : Docs staging
179- url : ${{ steps.publish_docs.outputs.preview-url }}
180- env :
181- NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
182- NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
183- steps :
184- - uses : actions/checkout@v2
185-
186- - name : Install pnpm
187- uses : pnpm/action-setup@v4
188- with :
189- version : 9.12.2
190-
191- - uses : actions/cache@v3
192- name : Download storybook cache
193- with :
194- path : |
195- **/node_modules/.cache
196- key : ${{ runner.os }}-storybook-${{ github.run_id }}
197- restore-keys : |
198- ${{ runner.os }}-storybook
199-
200- - uses : actions/setup-node@v3
201- with :
202- node-version-file : ' .nvmrc'
203- cache : ' pnpm'
204-
205- - name : Install dependencies
206- run : pnpm install
207-
208- - name : Build Docs
209- run : pnpm build-docs --quiet
210-
211- - name : Deploy docs to Netlify
212- id : publish_docs
213- 214- with :
215- github-token : ${{ secrets.GITHUB_TOKEN }}
216- netlify-auth-token : ${{ secrets.NETLIFY_AUTH_TOKEN }}
217- netlify-site-id : ${{ secrets.NETLIFY_SITE_ID }}
218- draft : true
219- build-dir : ./storybook-docs
220- comment-on-commit : true
221-
222- - name : Comment PR
223- uses : actions/github-script@v6
224- with :
225- github-token : ${{ secrets.GITHUB_TOKEN }}
226- script : |
227- const setMessage = require('${{ github.workspace }}/scripts/ci/set-message.cjs')
228-
229- await setMessage({
230- header: "## 🏗 Docs are successfully deployed!",
231- body: `
232- 👀 Preview: ${{ steps.publish_docs.outputs.preview-url }}
233- `,
234- github,
235- repo: context.repo,
236- prNumber: context.payload.pull_request.number
237- })
0 commit comments