Skip to content

Commit 20ef8ff

Browse files
committed
chore: fix release pipeline to build packages in the right order
1 parent 16205ac commit 20ef8ff

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/on-release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
strategy:
1111
matrix:
1212
package:
13-
- '@json2csv/cli'
1413
- '@json2csv/formatters'
15-
- '@json2csv/node'
16-
- '@json2csv/plainjs'
1714
- '@json2csv/transforms'
15+
- '@json2csv/plainjs'
1816
- '@json2csv/whatwg'
17+
- '@json2csv/node'
18+
- '@json2csv/cli'
1919

2020
steps:
2121
- uses: actions/checkout@v3
@@ -26,6 +26,7 @@ jobs:
2626
# Needs to be explicitly specified for auth to work
2727
registry-url: 'https://registry.npmjs.org'
2828
- run: npm ci
29+
- run: npm run build
2930
- run: npm publish --access public -w ${{ matrix.package }}
3031
env:
3132
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"test": "npm run test:raw -w @json2csv/plainjs -w @json2csv/node -w @json2csv/whatwg -w @json2csv/cli | tap-spec",
4545
"test-with-coverage": "c8 --include 'packages/*/src' --include 'packages/*/bin' --reporter=text --reporter=lcov npm test",
4646
"build:cdn": "node build-cdn.js",
47-
"build": "npm run build -ws -w @json2csv/formatters -w @json2csv/transforms -w @json2csv/plainjs -w @json2csv/node -w @json2csv/whatwg -w @json2csv/cli",
47+
"build": "npm run build -w @json2csv/formatters -w @json2csv/transforms -w @json2csv/plainjs -w @json2csv/node -w @json2csv/whatwg -w @json2csv/cli",
4848
"dependencies:update-internal": "npm run dependencies:update-internal -w @json2csv/cli -w @json2csv/plainjs -w @json2csv/node -w @json2csv/whatwg"
4949
},
5050
"devDependencies": {

0 commit comments

Comments
 (0)