Merge pull request #9 from herberthk/updated-example #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# name: Release | |
# This will trigger the workflow when a pull request is merged into main. | |
# on: | |
# push: | |
# branches: | |
# - main | |
# pull_request: | |
# branches: | |
# - main | |
# workflow_run: | |
# workflows: ["Build and Test"] # Name of the triggering workflow | |
# types: | |
# - completed # Run this workflow when the 'Build and Test' workflow completes | |
# jobs: | |
# release: | |
# runs-on: ubuntu-latest | |
# # Only run if the build and test workflow succeeds | |
# if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v3 | |
# - name: Setup | |
# uses: ./.github/actions/setup | |
# # Run release-it to publish package to npm and create a GitHub release | |
# - name: Publish package and create GitHub release | |
# run: npx release-it --ci | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# # NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |