-
Notifications
You must be signed in to change notification settings - Fork 188
Open
Description
Hello I'm learning how to use this action. I have a question regarding the build process.
Does this action does a build for me or do I have to make the usual manual build process like this?
Thanks
steps:
# 1. Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repository
uses: actions/checkout@v4
# 2. Sets up Node.js environment
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20" # Specify the Node.js version you are using
# 3. Sets up pnpm for dependency management
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8 # Specify the pnpm version you are using
run_install: false
# 4. Gets the pnpm store directory path
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
# 5. Caches pnpm dependencies to speed up future builds
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
# 6. Installs project dependencies using pnpm
- name: Install dependencies
run: pnpm install
# 7. Builds the Astro project for Cloudflare Workers
- name: Build Astro project
run: pnpm build
Metadata
Metadata
Assignees
Labels
No labels