Skip to content

Commit

Permalink
chore: fix release pipeline to build packages in the right order
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjoDiaz committed May 29, 2023
1 parent 16205ac commit 20ef8ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
strategy:
matrix:
package:
- '@json2csv/cli'
- '@json2csv/formatters'
- '@json2csv/node'
- '@json2csv/plainjs'
- '@json2csv/transforms'
- '@json2csv/plainjs'
- '@json2csv/whatwg'
- '@json2csv/node'
- '@json2csv/cli'

steps:
- uses: actions/checkout@v3
Expand All @@ -26,6 +26,7 @@ jobs:
# Needs to be explicitly specified for auth to work
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish --access public -w ${{ matrix.package }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"test": "npm run test:raw -w @json2csv/plainjs -w @json2csv/node -w @json2csv/whatwg -w @json2csv/cli | tap-spec",
"test-with-coverage": "c8 --include 'packages/*/src' --include 'packages/*/bin' --reporter=text --reporter=lcov npm test",
"build:cdn": "node build-cdn.js",
"build": "npm run build -ws -w @json2csv/formatters -w @json2csv/transforms -w @json2csv/plainjs -w @json2csv/node -w @json2csv/whatwg -w @json2csv/cli",
"build": "npm run build -w @json2csv/formatters -w @json2csv/transforms -w @json2csv/plainjs -w @json2csv/node -w @json2csv/whatwg -w @json2csv/cli",
"dependencies:update-internal": "npm run dependencies:update-internal -w @json2csv/cli -w @json2csv/plainjs -w @json2csv/node -w @json2csv/whatwg"
},
"devDependencies": {
Expand Down

0 comments on commit 20ef8ff

Please sign in to comment.