File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Caller workflow — drop this into each consuming repo at:
2+ # .github/workflows/release.yml
3+ #
4+ # Update the `uses` path to match your shared-workflows repo and tag.
5+ # Update `zip-name` to match the package name in that repo's package.json.
6+
17name : Build and release
28
39on :
410 push :
511 tags :
6- - ' v*.*.*'
7- - ' v*.*.*-rc.*'
8-
12+ - " v*.*.*"
13+ - " v*.*.*-rc.*"
14+ workflow_dispatch :
15+
916permissions :
1017 contents : write
1118
1219jobs :
13- build :
14- runs-on : ubuntu-latest
15-
16- steps :
17- - uses : actions/checkout@v4.2.2
18- - uses : actions/setup-node@v3.9.1
19- with :
20- node-version : 20
21- cache : ' npm'
22-
23- - name : Install Composer dependencies
24- run : |
25- composer install --optimize-autoloader --ignore-platform-reqs --no-dev
26-
27- - name : Install Node dependencies
28- run : npm install
29-
30- - name : Build plugin assets
31- run : ./node_modules/.bin/wp-scripts build
32-
33- - name : Package plugin
34- run : ./node_modules/.bin/wp-scripts plugin-zip
35-
36- - name : Release
37- uses : softprops/action-gh-release@v1
38- with :
39- files : ucsc-custom-functionality.zip
40- generate_release_notes : true
20+ release :
21+ # Point this at your shared repo. Pin to a tag for stability.
22+ uses : ucsc/actions/.github/workflows/release.yml@v1
23+ with :
24+ zip-name : ${{ github.event.repository.name }}.zip
25+ #
26+ # DEFAULTS
27+ # Uncomment the following lines to adjust the defaults:
28+ #
29+ # node-version: '24'
30+ # build-command: 'build'
31+ # use-composer: true
32+ # composer-args: '--no-dev --no-progress --optimize-autoloader'
33+ # generate-release-notes: true
Original file line number Diff line number Diff line change 11{
2+ "name" : " ucsc/custom-functionality" ,
3+ "description" : " UCSC Custom Functionality WordPress Plugin" ,
4+ "license" : " GPL-2.0-or-later" ,
25 "require-dev" : {
36 "wp-coding-standards/wpcs" : " ^2.2" ,
47 "dealerdirect/phpcodesniffer-composer-installer" : " ^0.7.2"
You can’t perform that action at this time.
0 commit comments