Skip to content

Commit 8d61ff9

Browse files
authored
bundle shared into the clui using tsup (#108)
* bundle shared into the clui using tsup * fixes * fix * fix
1 parent 5fb94de commit 8d61ff9

File tree

12 files changed

+905
-149
lines changed

12 files changed

+905
-149
lines changed

.github/workflows/lint_test_build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636
- name: Install dependencies
3737
run: npm install
3838

39-
- name: Build shared
40-
run: npm run build:shared
41-
4239
- name: Tests
4340
run: npm run test
4441

.github/workflows/release.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,6 @@ jobs:
4444
- name: Login to npm registry
4545
run: npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
4646

47-
- name: Build and publish shared package
48-
run: |
49-
cd packages/shared
50-
npm version ${{ github.event.inputs.release_type }} --no-git-tag-version
51-
npm run build
52-
npm publish --access public
53-
env:
54-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
55-
56-
- name: Update CLI to use latest shared version
57-
run: |
58-
SHARED_VERSION=$(node -p "require('./packages/shared/package.json').version")
59-
cd packages/cli
60-
# Update dependency version in package.json
61-
sed -i "s/\"@nanoapi.io\/shared\": \".*\"/\"@nanoapi.io\/shared\": \"^$SHARED_VERSION\"/" package.json
62-
git add ../shared/package.json package.json
63-
git commit -m "[skip ci] chore: update shared to v$SHARED_VERSION"
64-
6547
- name: Run release-it for CLI
6648
run: npm run release -- ${{ github.event.inputs.release_type }} --ci
6749
env:

0 commit comments

Comments
 (0)