chore(deps): update pnpm to v9.15.2 #3853
Workflow file for this run
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: 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
run_install: false | |
- name: Set up node | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Restore cached build | |
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 | |
id: cache-build | |
with: | |
path: build | |
key: ${{ github.sha }} | |
- name: Fallback if build cache fails | |
run: pnpm build | |
if: steps.cache-build.outputs.cache-hit != 'true' | |
- name: Recreate README | |
run: pnpm 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" |