woocommerce/.github/workflows/package-release.yml

23 lines
887 B
YAML
Raw Normal View History

name: Package release
on:
workflow_dispatch:
inputs:
packages:
description: 'Enter a specific package to release, or releases separated by commas, ie @woocommerce/components,@woocommerce/number. Leaving this input blank will release all eligible packages.'
required: false
default: '-a'
jobs:
release:
name: Run packages release script
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup WooCommerce Monorepo
uses: ./.github/actions/setup-woocommerce-monorepo
- name: Execute script
run: ./tools/package-release/bin/dev publish ${{ github.event.inputs.packages }} --branch=${{ github.ref_name }} --skip-install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}