@@ -44,24 +44,28 @@ jobs:
44
44
VERSION=$(cat package.json | jq -r .version)
45
45
echo "Using version: $VERSION"
46
46
# Update all workspace package versions to match root package.json
47
- bun x workspaces-update-version $VERSION --force-publish --no-git-tag-version --no-push --yes
47
+ for pkg in packages/*/package.json; do
48
+ jq --arg version "$VERSION" '.version = $version' "$pkg" > tmp.$$.json && mv tmp.$$.json "$pkg"
49
+ done
48
50
49
51
- name : Building for production
50
52
env :
51
53
NODE_ENV : production
52
54
SKIP_PREFLIGHT_CHECK : ' true'
53
- run : bun run build --if-present
55
+ run : |
56
+ bun run --cwd=packages/component build
57
+ bun run --cwd=packages/playground build
54
58
55
59
- name : Copying documents
56
60
run : |
57
61
cp CHANGELOG.md packages/component
58
62
cp LICENSE packages/component
59
63
cp README.md packages/component
60
64
61
- - name : Running bun pack
65
+ - name : Running npm pack
62
66
run : |
63
67
cd packages/component
64
- bun pack
68
+ npm pack
65
69
66
70
- name : Uploading npm-tarball
67
71
uses : actions/upload-artifact@v4
73
77
uses : actions/upload-artifact@v4
74
78
with :
75
79
name : gh-pages
76
- path : ' packages/playground/build/**/*'
80
+ path : ' packages/playground/build'
81
+ retention-days : 1
77
82
78
83
# "test" job will only run when not deploying, will build for instrumentation.
79
84
test :
@@ -105,7 +110,9 @@ jobs:
105
110
VERSION=$(cat package.json | jq -r .version)
106
111
echo "Using version: $VERSION"
107
112
# Update all workspace package versions to match root package.json
108
- bun x workspaces-update-version $VERSION --force-publish --no-git-tag-version --no-push --yes
113
+ for pkg in packages/*/package.json; do
114
+ jq --arg version "$VERSION" '.version = $version' "$pkg" > tmp.$$.json && mv tmp.$$.json "$pkg"
115
+ done
109
116
110
117
- name : Running static code analysis
111
118
run : |
@@ -116,7 +123,7 @@ jobs:
116
123
env :
117
124
NODE_ENV : test
118
125
SKIP_PREFLIGHT_CHECK : ' true'
119
- run : bun run build --if-present
126
+ run : bun run --cwd=packages/component build:full
120
127
121
128
- name : Starting Docker Compose
122
129
run : bun run docker:up -- --detach
@@ -163,13 +170,13 @@ jobs:
163
170
164
171
- name : Publishing ${{ steps.read-package-json.outputs.name }}@${{ steps.read-package-json.outputs.version }}
165
172
run : |
166
- bun config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
167
- bun publish *.tgz --tag main
173
+ npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
174
+ npm publish *.tgz --tag main --access public
168
175
169
176
- name : Tagging dist-tag ${{ steps.read-package-json.outputs.name }}@${{ steps.read-package-json.outputs.version }} latest
170
177
if : ${{ startsWith(github.ref, 'refs/tags/') }}
171
178
run : |
172
- bun dist-tag add ${{ steps.read-package-json.outputs.name }}@${{ steps.read-package-json.outputs.version }} latest
179
+ npm dist-tag add ${{ steps.read-package-json.outputs.name }}@${{ steps.read-package-json.outputs.version }} latest
173
180
174
181
- name : Drafting a new release
175
182
uses : actions/create-release@v1
0 commit comments