Skip to content

Commit

Permalink
chore: automate release of core after new AC
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales committed May 29, 2024
1 parent 636a61e commit e16a7a4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/esbuild-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: esbuild Compilation & npm Publish Workflow

on:
workflow_run:
workflows:
- create-github-release
types:
- completed
workflow_dispatch:
inputs:
branch:
Expand All @@ -16,18 +21,19 @@ on:

jobs:
bundle:
if: ${{ inputs.branch || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')}}
uses: ./.github/workflows/bundle.yml
secrets: inherit
with:
branch: ${{ inputs.branch }}
nodeVersion: ${{ inputs.nodeVersion }}
branch: ${{ inputs.branch || 'main' }}
nodeVersion: ${{ inputs.nodeVersion || 'lts/*'}}
publish:
needs: bundle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
ref: ${{ inputs.branch || 'main' }}
- name: Publish a Package
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
Expand Down

0 comments on commit e16a7a4

Please sign in to comment.