Skip to content

Commit 6b110df

Browse files
authored
Merge pull request #399 from ForgeRock/pkg-pr-new
chore: add-continuous-publish
2 parents 5c1ff08 + bb83ab8 commit 6b110df

File tree

6 files changed

+343
-49
lines changed

6 files changed

+343
-49
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ jobs:
8080
env:
8181
NX_CLOUD_DISTRIBUTED_EXECUTION: false
8282

83+
- run: pnpm pkg-pr-new publish './packages/*' './packages/sdk-effects/*' --packageManager=pnpm
84+
8385
- name: build docs
8486
run: pnpm generate-docs
8587

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ jobs:
104104
HOME: ${{ github.workspace }}
105105
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
106106

107+
- run: pnpm pkg-pr-new publish './packages/*' './packages/sdk-effects/*' --packageManager=pnpm --comment=off
108+
if: steps.changesets.outputs.published == 'false'
109+
107110
- name: Send GitHub Action data to a Slack workflow
108111
if: steps.changesets.outputs.published == 'true'
109112
uses: slackapi/[email protected]

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
[![Build Status](https://github.com/ForgeRock/ping-javascript-sdk/actions/workflows/ci.yaml/badge.svg)](https://github.com/ForgeRock/ping-javascript-sdk/actions/workflows/ci.yaml)
1+
[![pkg.pr.new](https://pkg.pr.new/badge/ForgeRock/ping-javascript-sdk)](https://pkg.pr.new/~/ForgeRock/ping-javascript-sdk)
2+
[![Build Status](https://github.com/ForgeRock/ping-javascript-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/ForgeRock/ping-javascript-sdk/actions/workflows/ci.yml)
23

34
<p align="center">
45
<a href="https://github.com/ForgeRock/ping-javascript-sdk">

e2e/oidc-suites/src/logout.spec.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ test.describe('Logout tests', () => {
3838

3939
await page.getByLabel('User Name').fill(pingAmUsername);
4040
await page.getByRole('textbox', { name: 'Password' }).fill(pingAmPassword);
41-
const amNavigation = page.waitForURL('http://localhost:8443/ping-am/**');
42-
await page.getByRole('button', { name: 'Next' }).click();
43-
await amNavigation;
41+
await Promise.all([
42+
page.waitForURL('http://localhost:8443/ping-am/**'),
43+
page.getByRole('button', { name: 'Next' }).click(),
44+
]);
4445
expect(page.url()).toContain('code');
4546
expect(page.url()).toContain('state');
4647
await expect(page.getByRole('button', { name: 'Login (Background)' })).toBeHidden();
@@ -74,9 +75,10 @@ test.describe('Logout tests', () => {
7475

7576
await page.getByLabel('Username').fill(pingOneUsername);
7677
await page.getByRole('textbox', { name: 'Password' }).fill(pingOnePassword);
77-
const p1Navigation = page.waitForURL('http://localhost:8443/ping-one/**');
78-
await page.getByRole('button', { name: 'Sign On' }).click();
79-
await p1Navigation;
78+
await Promise.all([
79+
page.waitForURL('http://localhost:8443/ping-one/**'),
80+
page.getByRole('button', { name: 'Sign On' }).click(),
81+
]);
8082
expect(page.url()).toContain('code');
8183
expect(page.url()).toContain('state');
8284
await expect(page.getByRole('button', { name: 'Login (Background)' })).toBeHidden();

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@
4949
"path": "./node_modules/cz-conventional-changelog"
5050
}
5151
},
52-
"dependencies": {
53-
"ts-patch": "3.3.0"
54-
},
5552
"devDependencies": {
5653
"@changesets/changelog-github": "^0.5.0",
5754
"@changesets/cli": "^2.27.9",
@@ -81,6 +78,8 @@
8178
"@types/estree": "^1.0.1",
8279
"@types/express": "5.0.1",
8380
"@types/node": "22.14.1",
81+
"@typescript-eslint/eslint-plugin": "^8.45.0",
82+
"@typescript-eslint/parser": "^8.45.0",
8483
"@typescript-eslint/typescript-estree": "8.23.0",
8584
"@typescript-eslint/utils": "^8.13.0",
8685
"@vitest/coverage-v8": "^3.0.5",
@@ -102,12 +101,14 @@
102101
"lint-staged": "^15.0.0",
103102
"madge": "8.0.0",
104103
"nx": "21.2.3",
104+
"pkg-pr-new": "^0.0.51",
105105
"playwright": "^1.47.2",
106106
"prettier": "^3.2.5",
107107
"shx": "^0.4.0",
108108
"swc-loader": "0.2.6",
109109
"ts-node": "10.9.2",
110110
"tslib": "^2.5.0",
111+
"ts-patch": "3.3.0",
111112
"typedoc": "^0.27.4",
112113
"typedoc-github-theme": "0.2.1",
113114
"typedoc-plugin-rename-defaults": "^0.7.2",

0 commit comments

Comments
 (0)