-
-
Notifications
You must be signed in to change notification settings - Fork 39
61 lines (53 loc) · 1.59 KB
/
Copy pathpackage.yml
File metadata and controls
61 lines (53 loc) · 1.59 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Package Build
on:
pull_request:
branches: [main, dev]
push:
branches: [main, dev]
workflow_call:
workflow_dispatch:
inputs:
dry-run:
description: 'Perform dry run without publishing'
type: boolean
default: true
release:
types: [published]
permissions:
contents: read
packages: write
pull-requests: write
jobs:
publish:
if: github.event_name != 'pull_request' || github.event.pull_request.user.login != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
with:
node-version: '22'
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build workspace packages
run: bun run build:packages
- name: Build & Publish Packages
uses: wgtechlabs/package-build-flow-action@v2.0.1
with:
monorepo: 'true'
workspace-detection: 'true'
package-manager: 'bun'
dependency-order: 'true'
changed-only: 'false'
registry: 'both'
access: 'public'
npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
publish-enabled: 'true'
dry-run: ${{ github.event.inputs.dry-run || 'false' }}
build-script: 'build'
audit-enabled: 'true'
audit-level: 'high'
fail-on-audit: 'false'