Skip to content

Commit 20ed597

Browse files
📦 new: implement package build flow action v1.2.3 (#24)
* Initial plan * 📦 new: add package build flow workflow Co-authored-by: warengonzaga <15052701+warengonzaga@users.noreply.github.com> * 🔧 update: upgrade action to v1.2.2 Co-authored-by: warengonzaga <15052701+warengonzaga@users.noreply.github.com> * 🔧 update (version): bump to 2.2.1 Co-authored-by: warengonzaga <15052701+warengonzaga@users.noreply.github.com> * 🔧 update: upgrade action to v1.2.3 Co-authored-by: warengonzaga <15052701+warengonzaga@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: warengonzaga <15052701+warengonzaga@users.noreply.github.com>
1 parent 024cd01 commit 20ed597

File tree

2 files changed

+68
-1
lines changed

2 files changed

+68
-1
lines changed

.github/workflows/build-flow.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Build & Publish Flow
2+
3+
on:
4+
push:
5+
branches: [main, dev]
6+
pull_request:
7+
branches: [main, dev]
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
build-and-publish:
13+
name: Build & Publish Package
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
packages: write
18+
pull-requests: write
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '20'
28+
29+
- name: Enable Corepack for Yarn v4
30+
run: |
31+
echo "Enabling Corepack..."
32+
corepack enable
33+
echo "Preparing Yarn 4.9.2..."
34+
corepack prepare yarn@4.9.2 --activate
35+
echo "Yarn setup complete"
36+
37+
- name: Verify Yarn version
38+
run: |
39+
echo "Yarn version:"
40+
yarn --version
41+
42+
- name: Build and Publish Package
43+
uses: wgtechlabs/package-build-flow-action@v1.2.3
44+
with:
45+
# Registry Configuration
46+
registry: 'both'
47+
npm-token: ${{ secrets.NPM_TOKEN }}
48+
github-token: ${{ secrets.GITHUB_TOKEN }}
49+
50+
# Branch Configuration
51+
main-branch: 'main'
52+
dev-branch: 'dev'
53+
54+
# Package Configuration
55+
package-manager: 'yarn'
56+
build-script: 'build'
57+
58+
# Security Configuration
59+
audit-enabled: 'true'
60+
audit-level: 'high'
61+
fail-on-audit: 'false'
62+
63+
# PR Comment Configuration
64+
pr-comment-enabled: 'true'
65+
66+
# Publishing Configuration
67+
publish-enabled: 'true'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wgtechlabs/log-engine",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"description": "A lightweight, security-first logging utility with automatic data redaction for Node.js applications - the first logging library with built-in PII protection.",
55
"type": "module",
66
"keywords": [

0 commit comments

Comments
 (0)