2022-07-14 04:58:47 +00:00
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 :
2022-07-22 00:08:11 +00:00
release :
name : Run packages release script
2022-07-14 04:58:47 +00:00
runs-on : ubuntu-20.04
steps :
2022-07-22 00:08:11 +00:00
- uses : actions/checkout@v3
- uses : ./.github/actions/cache-deps
with :
workflow_name : package-release
workflow_cache : ${{ secrets.WORKFLOW_CACHE }}
- name : Setup PHP
uses : shivammathur/setup-php@v2
with :
php-version : '7.4'
- name : Setup Node
uses : actions/setup-node@v2
with :
node-version : '16'
registry-url : 'https://registry.npmjs.org'
- name : Install PNPM
run : npm install -g pnpm@^6.24.2
- name : Install dependencies
run : pnpm install
- 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 }}