Skip to content

Commit

Permalink
build: lerna and ci usage of npm
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Aug 25, 2024
1 parent 62b4abf commit beb4571
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile
- run: yarn run test
- run: npm install
- run: npm run test
test_legacy:
runs-on: ubuntu-latest
strategy:
Expand All @@ -32,8 +32,13 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile
- run: yarn run test:legacy
- run: |
cwd=`pwd`
for pkg in packages/*/package.json; do
cd $cwd/`dirname $pkg`
npm install
npm run test:legacy;
done
publish:
needs: [test, test_legacy]
runs-on: ubuntu-latest
Expand All @@ -45,7 +50,7 @@ jobs:
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn run publish
- run: npm install
- run: npm run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_modules
!.github
!.gitignore
!.husky
!.npmrc
lerna-debug.log
yarn.lock
yarn-error.log
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
3 changes: 1 addition & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"message": "chore(release): publish"
}
},
"npmClient": "yarn",
"useWorkspaces": true,
"npmClient": "npm",
"version": "independent"
}

0 comments on commit beb4571

Please sign in to comment.