-
-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (46 loc) · 1.59 KB
/
test--release-and-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Test - Release and Publish
on:
pull_request:
push:
branches: main
tags: ["!**"]
# workflow_run:
# workflows: [Lint and Type]
# branches: main
# types: completed
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
test-release:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
node-version: [20.x]
# if: ${{ github.event.workflow_run.conclusion != 'failure' }}
steps:
- name: Checkout repo
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.9.0
- name: Setup Node.js 20.x
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies and build
run: |
pnpm install --frozen-lockfile
pnpm build
- name: Deploy and test release via pkg.pr.new
run: pnpm test:release
# on--workflow-failure:
# runs-on: ubuntu-latest
# timeout-minutes: 15
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
# steps:
# - run: |
# echo "Triggering Workflow: ${{ github.event_name }} failed woefully"
# echo "Workflow run conclusion: ${{ github.event.workflow_run.conclusion }}"
# echo "Workflow run status: ${{ github.event.workflow_run.status }}"