Skip to content

Commit 3490ca2

Browse files
committed
Update Actions
1 parent fe43ec6 commit 3490ca2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
node-version: "lts/*"
2929
registry-url: "https://registry.npmjs.org"
3030
- run: npm ci
31-
- run: npm run build
32-
- run: npm publish
31+
- run: npm run build --workspaces --if-present
32+
- run: npm publish --workspaces --if-present
3333
if: "!github.event.release.prerelease"
3434
# npm requires explicitly specifying a "tag" like `next` if the semantic version is a prerelease like `2.0.0-alpha1`
35-
- run: npm publish --tag next
35+
- run: npm publish --workspaces --if-present --tag next
3636
if: github.event.release.prerelease

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929
- name: Install
3030
run: npm ci
3131
- name: Generate docs
32-
run: npm run doc
32+
run: npm run doc --workspace packages/roslib
3333
- name: Upload static files as artifact
3434
id: deployment
3535
uses: actions/upload-pages-artifact@v4
3636
with:
37-
path: docs/
37+
path: packages/roslib/docs/
3838

3939
deploy:
4040
needs: build

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ jobs:
3737
run: npm ci
3838

3939
- name: Build JavaScript library
40-
run: npm run build
40+
run: npm run build --workspaces --if-present
4141

4242
- name: Run tests
43-
run: npm test
43+
run: npm test --workspaces --if-present
4444

4545
docs:
4646
uses: ./.github/workflows/docs.yml

0 commit comments

Comments
 (0)