ci: simplify Gitea publish workflow trigger
This commit is contained in:
parent
9b884d6e85
commit
079e46b74d
@ -1,24 +1,10 @@
|
|||||||
name: Publish @bytelyst/* packages
|
name: Publish @bytelyst/* packages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
paths:
|
|
||||||
- 'packages/**/package.json'
|
|
||||||
- '.gitea/workflows/publish-packages.yml'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
push:
|
||||||
dry_run:
|
branches: [main]
|
||||||
description: 'Build + pack but skip publish'
|
tags: ['v*']
|
||||||
required: false
|
|
||||||
default: 'true'
|
|
||||||
package_filter:
|
|
||||||
description: 'Optional package name to restrict publish/dry-run, e.g. @bytelyst/errors'
|
|
||||||
required: false
|
|
||||||
default: '@bytelyst/errors'
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: publish-${{ github.ref }}
|
group: publish-${{ github.ref }}
|
||||||
@ -66,7 +52,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Discover unpublished packages
|
- name: Discover unpublished packages
|
||||||
env:
|
env:
|
||||||
PACKAGE_FILTER: ${{ inputs.package_filter || '@bytelyst/errors' }}
|
PACKAGE_FILTER: '@bytelyst/errors'
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
: > /tmp/packages-to-publish.tsv
|
: > /tmp/packages-to-publish.tsv
|
||||||
@ -95,7 +81,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build, test, pack, and optionally publish queued packages
|
- name: Build, test, pack, and optionally publish queued packages
|
||||||
env:
|
env:
|
||||||
DRY_RUN: ${{ inputs.dry_run || 'false' }}
|
DRY_RUN: 'false'
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -p /tmp/tarballs
|
mkdir -p /tmp/tarballs
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user