Skip to content

Commit

Permalink
Merge pull request #27 from LyonSyonII/dev
Browse files Browse the repository at this point in the history
FIX: fixed preview action
  • Loading branch information
LyonSyonII authored Dec 21, 2023
2 parents 8643329 + aa5cf1a commit fbc2a32
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,21 @@ jobs:
permissions:
pull-requests: write # allow surge-preview to create/update PR comments
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: latest
cache: 'pnpm'
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install dependencies and Build
run: |
cd frontend
pnpm install
pnpm build
- uses: afc163/surge-preview@v1
id: preview_step
with:
Expand All @@ -21,7 +35,6 @@ jobs:
teardown: true
failOnError: true
build: |
npm install
npm run build
bash -c "echo Done"
- name: Get the preview_url
run: echo "url => ${{ steps.preview_step.outputs.preview_url }}"

0 comments on commit fbc2a32

Please sign in to comment.