Skip to content

Commit

Permalink
Fix release preview action
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Sep 4, 2024
1 parent 188f2e9 commit 1d826fb
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/release-preview.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,22 @@
name: release:preview

on:
push:
pull_request:
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]

steps:
- name: Checkout code
uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run compiler
run: pnpm compile
- name: Deploy release preview
run: pnpx pkg-pr-new publish './programs/*'
run: pnpx pkg-pr-new publish './programs/*'

0 comments on commit 1d826fb

Please sign in to comment.