Skip to content

Commit c949699

Browse files
committed
Update changepacks
1 parent 59c0520 commit c949699

File tree

10 files changed

+82
-8
lines changed

10 files changed

+82
-8
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"packages/webpack-plugin/package.json":"Minor","packages/utils/package.json":"Minor","packages/generator/package.json":"Minor","packages/core/package.json":"Minor","packages/fetch/package.json":"Minor","packages/next-plugin/package.json":"Minor","packages/vite-plugin/package.json":"Minor","packages/rsbuild-plugin/package.json":"Minor"},"note":"Update lib","date":"2025-11-28T21:43:57.038154400Z"}

.github/workflows/publish.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Publish Package to npm
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
permissions: write-all
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: false
15+
16+
jobs:
17+
check:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v5
22+
23+
- uses: oven-sh/setup-bun@v2
24+
with:
25+
bun-version: latest
26+
- run: bun i
27+
- run: bun test --coverage
28+
- run: bun lint
29+
- run: bun run build
30+
31+
changepacks:
32+
name: changepacks
33+
runs-on: ubuntu-latest
34+
permissions:
35+
# create pull request comments
36+
pull-requests: write
37+
38+
# Actions > General > Workflow permissions for creating pull request
39+
# Create brench to create pull request
40+
contents: write
41+
needs:
42+
- check
43+
steps:
44+
- uses: actions/checkout@v5
45+
- uses: changepacks/action@main
46+
id: changepacks
47+
outputs:
48+
changepacks: ${{ steps.changepacks.outputs.changepacks }}
49+
50+
publish:
51+
runs-on: ubuntu-latest
52+
needs:
53+
- changepacks
54+
if: contains(needs.changepacks.outputs.changepacks, 'package.json')
55+
steps:
56+
- name: Checkout
57+
uses: actions/checkout@v5
58+
59+
- uses: oven-sh/setup-bun@v2
60+
with:
61+
bun-version: latest
62+
- run: bun i
63+
- run: bun test --coverage --coverage-reporter=lcov
64+
- run: bun run build
65+
- name: Upload to codecov.io
66+
uses: codecov/codecov-action@v5
67+
with:
68+
token: ${{ secrets.CODECOV_TOKEN }}
69+
fail_ci_if_error: true
70+
files: ./coverage/lcov.info
71+
- run: bun publish --access public --ignore-scripts
72+
env:
73+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devup-api/core",
3-
"version": "0.1.0",
3+
"version": "0.0.0",
44
"type": "module",
55
"exports": {
66
".": {

packages/fetch/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devup-api/fetch",
3-
"version": "0.1.0",
3+
"version": "0.0.0",
44
"type": "module",
55
"exports": {
66
".": {

packages/generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devup-api/generator",
3-
"version": "0.1.0",
3+
"version": "0.0.0",
44
"type": "module",
55
"exports": {
66
".": {

packages/next-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devup-api/next-plugin",
3-
"version": "0.1.0",
3+
"version": "0.0.0",
44
"type": "module",
55
"exports": {
66
".": {

packages/rsbuild-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devup-api/rsbuild-plugin",
3-
"version": "0.1.0",
3+
"version": "0.0.0",
44
"type": "module",
55
"exports": {
66
".": {

packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devup-api/utils",
3-
"version": "0.1.0",
3+
"version": "0.0.0",
44
"type": "module",
55
"exports": {
66
".": {

packages/vite-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devup-api/vite-plugin",
3-
"version": "0.1.0",
3+
"version": "0.0.0",
44
"type": "module",
55
"exports": {
66
".": {

packages/webpack-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devup-api/webpack-plugin",
3-
"version": "0.1.0",
3+
"version": "0.0.0",
44
"type": "module",
55
"exports": {
66
".": {

0 commit comments

Comments
 (0)