-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 896 Bytes
/
lib.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 }}