Fix validateOn events. #177
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: Library pipeline | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- '*' | |
paths: | |
- packages/lib/** | |
push: | |
branches: | |
- master | |
paths: | |
- packages/lib/** | |
release: | |
types: [published] | |
branches: | |
- master | |
defaults: | |
run: | |
working-directory: packages/lib | |
jobs: | |
lib-workflow: | |
runs-on: ubuntu-latest | |
name: Lib workflow | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: ./.github/workflows/actions/setup-node | |
- name: Setup pnpm | |
uses: ./.github/workflows/actions/setup-pnpm | |
- name: 'Build and test' | |
uses: ./.github/workflows/actions/lib-build-and-test | |
- name: 'Publish to npm' | |
if: github.event_name == 'release' | |
uses: ./.github/workflows/actions/lib-publish-to-npm | |
with: | |
npm-token: ${{ secrets.NPM_TOKEN }} |