Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 861297f

Browse files
Merge pull request #258 from google/automatic-publish
When a new release is created, trigger an immediate build and publish
2 parents a47b01e + aa3a4cc commit 861297f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Build CI
33
on:
44
push:
55
branches: [ master ]
6+
workflow_call: {}
67
pull_request:
78
branches: [ master ]
89
schedule:
@@ -273,7 +274,7 @@ jobs:
273274
publish-packages:
274275
name: Publish Packages
275276
runs-on: ubuntu-latest
276-
if: ${{ github.event_name == 'schedule' || github.event_name == 'push' }}
277+
if: ${{ github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_call' }}
277278
env:
278279
NODE_VERSION: '18.x'
279280
COMPILER_NIGHTLY: ${{ github.event_name == 'schedule' }}

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,5 @@ jobs:
6161
-H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' \
6262
https://api.github.com/repos/google/closure-compiler-npm/releases \
6363
-d '{"tag_name":"v${{ github.event.inputs.COMPILER_VERSION_NUMBER }}.0.0","name":"${{ github.event.inputs.COMPILER_VERSION_NUMBER }}.0.0","body":"Closure-compiler ${{ github.event.inputs.COMPILER_VERSION_NUMBER }} release","draft":false,"prerelease":false,"generate_release_notes":true}'
64+
- name: Trigger Build and Publish
65+
uses: ./.github/workflows/build.yml

0 commit comments

Comments
 (0)