-
-
Notifications
You must be signed in to change notification settings - Fork 44
41 lines (39 loc) · 1.07 KB
/
release.yaml
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
---
name: Release
run-name: Release ${{inputs.tag}}
on:
workflow_dispatch:
inputs:
tag:
description: "tag"
required: true
pr:
description: "pr number (pre-release)"
required: false
jobs:
release:
timeout-minutes: 30
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: true # This is required to push a commit
- run: gh pr checkout "$PR"
if: inputs.pr != ''
env:
GITHUB_TOKEN: ${{github.token}}
PR: ${{inputs.pr}}
- uses: aquaproj/aqua-installer@f13c5d2f0357708d85477aabe50fd3f725528745 # v3.1.0
with:
aqua_version: v2.40.0
env:
GITHUB_TOKEN: ${{github.token}}
- run: cmdx build
shell: bash
- uses: suzuki-shunsuke/release-js-action@d824154e854ff4bfd1f87dc70f01ca3a50009ad1 # v0.1.3
with:
version: ${{inputs.tag}}
pr: ${{inputs.pr}}