chore(dependabot): fix configs #501
This file contains 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: Publish on GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
ghpages: | |
concurrency: ghpages-${{ github.ref }} | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.head_commit.message, 'chore:') }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: 'https://npm.pkg.github.com' | |
token: ${{ secrets.GH_ACTIONS }} | |
- name: Cache node modules | |
id: cache-npm | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Install dependencies and build libs 🔧 | |
run: | | |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc | |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_ACTIONS }}" >> .npmrc | |
npm ci --legacy-peer-deps | |
continue-on-error: false | |
- name: Build Docs 📚 | |
run: npm run docs:build | |
continue-on-error: false | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish Storybook 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: apps/docs/storybook-static | |
clean-exclude: pr-preview/ | |
force: false |