Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ jobs:
environment: BrowserStackEnv
permissions:
contents: read
# npm trusted publishing (OIDC): npm exchanges this token for a
# short-lived publish credential, so no long-lived NPM token is stored.
id-token: write
outputs:
published: ${{ steps.check-version.outputs.already_published == 'false' }}
version: ${{ steps.get-version.outputs.version }}
Expand All @@ -405,6 +408,10 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

# Trusted publishing needs npm >= 11.5.1 (pnpm publish delegates to npm).
- name: Upgrade npm for trusted publishing
run: npm install -g npm@^11.5.1

- name: Download build artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
Expand Down Expand Up @@ -433,9 +440,7 @@ jobs:
TAG="latest"
fi
echo "Publishing version $VERSION with tag $TAG"
pnpm publish -r --tag $TAG --no-git-checks
env:
NODE_AUTH_TOKEN: "${{ secrets.NPM_PUBLISH_TOKEN }}"
pnpm publish -r --tag $TAG --no-git-checks --provenance

# ── 6. Create GitHub Release (main branch only, if published) ────────────────
release:
Expand Down
5 changes: 5 additions & 0 deletions packages/accessibility/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,10 @@
"tsup": "^8.5.1",
"typescript": "^6.0.3",
"vitest": "^4.1.4"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shirish87/browserstack-client.git",
"directory": "packages/accessibility"
}
}
5 changes: 5 additions & 0 deletions packages/app-automate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,10 @@
"vitest": {
"optional": true
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/shirish87/browserstack-client.git",
"directory": "packages/app-automate"
}
}
5 changes: 5 additions & 0 deletions packages/automate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,10 @@
"vitest": {
"optional": true
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/shirish87/browserstack-client.git",
"directory": "packages/automate"
}
}
5 changes: 5 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,10 @@
"@types/node": "20.0.0",
"tsup": "^8.5.1",
"typescript": "^6.0.3"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shirish87/browserstack-client.git",
"directory": "packages/core"
}
}
5 changes: 5 additions & 0 deletions packages/local-testing-binary/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@
"@types/node": "20.0.0",
"tsup": "^8.5.1",
"typescript": "^6.0.3"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shirish87/browserstack-client.git",
"directory": "packages/local-testing-binary"
}
}
5 changes: 5 additions & 0 deletions packages/local-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,10 @@
"typescript": "^6.0.3",
"vitest": "^4.1.4",
"zod": "^4.4.3"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shirish87/browserstack-client.git",
"directory": "packages/local-testing"
}
}
5 changes: 5 additions & 0 deletions packages/screenshots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,10 @@
"typescript": "^6.0.3",
"vitest": "^4.1.4",
"zod": "^4.4.3"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shirish87/browserstack-client.git",
"directory": "packages/screenshots"
}
}
5 changes: 5 additions & 0 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,10 @@
"devDependencies": {
"tsup": "^8.5.1",
"typescript": "^6.0.3"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shirish87/browserstack-client.git",
"directory": "packages/sdk"
}
}
5 changes: 5 additions & 0 deletions packages/test-management/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,10 @@
"tsup": "^8.5.1",
"typescript": "^6.0.3",
"vitest": "^4.1.4"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shirish87/browserstack-client.git",
"directory": "packages/test-management"
}
}
5 changes: 5 additions & 0 deletions packages/test-reporting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,10 @@
"zod": {
"optional": true
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/shirish87/browserstack-client.git",
"directory": "packages/test-reporting"
}
}
5 changes: 5 additions & 0 deletions packages/website-scanner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,10 @@
"tsup": "^8.5.1",
"typescript": "^6.0.3",
"vitest": "^4.1.4"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shirish87/browserstack-client.git",
"directory": "packages/website-scanner"
}
}
Loading