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