chore: restructure files #315
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
# .github/workflows/release-please.yml | |
# This workflow handles the release-please system that manages releasing new versions. | |
# It also calls `publish-npm.yml`, which then handles publishing to npmjs. | |
# See: https://github.com/googleapis/release-please | |
name: release-please | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
steps: | |
- uses: google-github-actions/release-please-action@v3 # Handle local releases | |
id: release | |
with: | |
release-type: node | |
package-name: openbim-components | |
publish-npm: | |
needs: release-please | |
if: ${{ needs.release-please.outputs.release_created }} | |
uses: ./.github/workflows/publish-npm.yml # Publish to npmjs | |
secrets: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# Publish only if release-please creates a published release |