-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
42 lines (38 loc) · 1.03 KB
/
action.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
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-run-steps-action
name: Package and upload Logto artifact
inputs:
artifact-name:
description: The name of the artifact to upload
required: true
default: logto-${{ github.sha }}
branch:
description: The branch to checkout
node-version:
type: string
default: ^20.9
pnpm-version:
type: string
default: 9
runs:
using: composite
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
node-version: ${{ inputs['node-version'] }}
pnpm-version: ${{ inputs['pnpm-version'] }}
- name: Build and package
shell: bash
run: |
pnpm -r build
./.scripts/package.sh
- name: Upload Logto artifact
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: /tmp/logto.tar.gz
retention-days: 3