fix: 更新安装步骤,包含可选依赖并禁用包锁 #4
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: Deploy Storybook | |
| on: | |
| push: | |
| branches: | |
| - storybook | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js 22.14.0 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.14.0 | |
| cache: npm | |
| - name: Install && Build Storybook | |
| run: | | |
| npm install --include=optional --package-lock=false | |
| npm run build-storybook -- --disable-telemetry | |
| - name: Deploy to gh-pages | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| token: ${{ secrets.ACCESS_TOKEN }} | |
| branch: gh-pages | |
| folder: storybook-static | |
| clean: true |