diff --git a/.github/workflows/release-preview.yml b/.github/workflows/release-preview.yml index 9a764b10..6471d8f7 100644 --- a/.github/workflows/release-preview.yml +++ b/.github/workflows/release-preview.yml @@ -1,23 +1,12 @@ 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 }} @@ -25,7 +14,9 @@ jobs: 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/*' \ No newline at end of file