Skip to content

chore(deps): lock file maintenance #3491

chore(deps): lock file maintenance

chore(deps): lock file maintenance #3491

Workflow file for this run

name: Profile README
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 */8 * * *"
workflow_dispatch:
jobs:
main:
name: Recreate README
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Set up node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Restore cached build
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
id: cache-build
with:
path: build
key: ${{ github.sha }}
- name: Fallback if build cache fails
run: npm run build
if: steps.cache-build.outputs.cache-hit != 'true'
- name: Recreate README
run: npm start
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit and push
if: ${{ github.event_name != 'pull_request' }}
uses: s0/git-publish-subdir-action@develop
env:
REPO: [email protected]:promise/promise.git
BRANCH: promise
FOLDER: output
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SQUASH_HISTORY: true
SKIP_EMPTY_COMMITS: false
MESSAGE: "chore: profile automation 🎉"
COMMIT_NAME: "github-actions[bot]"
COMMIT_EMAIL: "github-actions[bot]@users.noreply.github.com"