diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65127ca8..9f11edc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: CI on: pull_request: - branches: [main] + branches: [main, release/v2] jobs: ci: runs-on: ubuntu-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b09616a1..6a11beae 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish npm package on: push: branches: - - main + - release/v2 jobs: publish: @@ -68,6 +68,6 @@ jobs: - name: Publish to npm if: steps.check_version.outputs.version_changed == 'true' - run: npm publish + run: npm publish --tag v2 env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} diff --git a/package-lock.json b/package-lock.json index f4c22bb1..a8585355 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cloudquery/plugin-config-ui-lib", - "version": "2.2.0", + "version": "2.2.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@cloudquery/plugin-config-ui-lib", - "version": "2.2.0", + "version": "2.2.2", "license": "MPL-2.0", "dependencies": { "@babel/runtime": "^7.25.6", diff --git a/package.json b/package.json index 1abc6b2b..ea38e72b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@cloudquery/plugin-config-ui-lib", "description": "Plugin configuration UI library for CloudQuery Cloud App", - "version": "2.2.0", + "version": "2.2.2", "private": false, "main": "dist/index.cjs.js", "module": "dist/index.esm.js", diff --git a/src/e2e-utils/plugin-ui-e2e-helpers.ts b/src/e2e-utils/plugin-ui-e2e-helpers.ts index 8aff1e4e..45c39237 100644 --- a/src/e2e-utils/plugin-ui-e2e-helpers.ts +++ b/src/e2e-utils/plugin-ui-e2e-helpers.ts @@ -47,7 +47,7 @@ export const createPlugin = async ({ test.setTimeout(300_000); await page.goto(getRootUrl()); - await expect(page.getByText(`Create a ${kind}`)).toBeVisible(); + await expect(page.getByRole('heading', { name: `Create a ${kind}` })).toBeVisible(); await fillInput(page, 'input[type="text"]', pluginName); @@ -90,7 +90,7 @@ export const editPlugin = async ({ test.setTimeout(300_000); await page.goto(getRootUrl()); - await expect(page.getByText(`Create a ${kind}`)).toBeVisible(); + await expect(page.getByRole('heading', { name: `Create a ${kind}` })).toBeVisible(); await fillInput(page, 'input[type="text"]', pluginName); @@ -139,7 +139,7 @@ export const deletePlugin = async ({ test.setTimeout(300_000); await page.goto(getRootUrl()); - await expect(page.getByText(`Create a ${kind}`)).toBeVisible(); + await expect(page.getByRole('heading', { name: `Create a ${kind}` })).toBeVisible(); await fillInput(page, 'input[type="text"]', pluginName);