Skip to content

Commit 650ee74

Browse files
committed
ci: Update release workflows
1 parent c269192 commit 650ee74

File tree

6 files changed

+60
-10
lines changed

6 files changed

+60
-10
lines changed

.github/workflows/main.yml

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
COVERAGE_FILENAME: reports/vitest/coverage/cobertura-coverage.xml
2222
COVERAGE_FAIL_BELOW_MIN: 100
2323

24-
2524
run_release_please:
2625
name: Run release-please
2726
uses: spuxx1701/ci-cd/.github/workflows/pnpm_release-please.yml@v4.0.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release browser-utils
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "*-v*"
8+
9+
jobs:
10+
release:
11+
uses: ../release_template.yml
12+
with:
13+
PATH: packages/browser-utils
14+
secrets:
15+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release js-utils
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "*-v*"
8+
9+
jobs:
10+
release:
11+
uses: ../release_template.yml
12+
with:
13+
PATH: packages/js-utils
14+
secrets:
15+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release nest-utils
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "*-v*"
8+
9+
jobs:
10+
release:
11+
uses: ../release_template.yml
12+
with:
13+
PATH: packages/nest-utils
14+
secrets:
15+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
name: release
1+
name: Release Template
22

33
on:
4-
workflow_dispatch:
5-
push:
6-
tags:
7-
- "*-v*"
4+
workflow_call:
5+
inputs:
6+
PATH:
7+
required: true
8+
type: string
9+
description: "Path to the package to be released"
10+
secrets:
11+
NPM_TOKEN:
12+
required: true
813

914
jobs:
1015
run_checks:
@@ -19,10 +24,12 @@ jobs:
1924
COVERAGE_FAIL_BELOW_MIN: 100
2025

2126
build_and_publish:
22-
name: Build and publish artifact(s)
23-
uses: spuxx1701/ci-cd/.github/workflows/pnpm_build_and_publish_monorepo.yml@v4.0.0
27+
name: Build and publish artifact
28+
uses: spuxx1701/ci-cd/.github/workflows/pnpm_build_and_publish.yml@v4.0.0
2429
needs:
2530
- run_checks
2631
- run_unit_tests
32+
with:
33+
PATH: ${{ inputs.PATH }}
2734
secrets:
2835
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.release-please/config.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@
1818
{ "type": "build", "section": "Build System", "hidden": true },
1919
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
2020
],
21-
"prerelease": true,
22-
"versioning": "prerelease"
21+
"prerelease": true
2322
}

0 commit comments

Comments
 (0)