From c8c12680020a210cf6963eedc074c867c396d3f6 Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Fri, 6 Dec 2024 19:51:08 +0700 Subject: [PATCH] build: drop legacy publish action (#4525) One less action on every commit in master. Made version placeholder more abstract "0.0.0-webstudio-version" --- .github/workflows/publish.yml | 33 ------------------- .github/workflows/release.yml | 2 +- packages/cli/package.json | 2 +- packages/cli/templates/defaults/package.json | 12 +++---- packages/cli/templates/ssg/package.json | 10 +++--- packages/css-engine/package.json | 2 +- packages/error-utils/package.json | 2 +- packages/fonts/package.json | 2 +- packages/http-client/package.json | 2 +- packages/icons/package.json | 2 +- packages/image/package.json | 2 +- packages/react-sdk/package.json | 2 +- .../sdk-components-react-radix/package.json | 2 +- .../sdk-components-react-remix/package.json | 2 +- packages/sdk-components-react/package.json | 2 +- packages/sdk/package.json | 2 +- 16 files changed, 24 insertions(+), 57 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index c9a82be017ac..000000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Publish packages on NPM 📦 - -on: - push: - branches: - - main - -jobs: - publish: - timeout-minutes: 20 - - runs-on: ubuntu-latest - - env: - DATABASE_URL: postgres:// - AUTH_SECRET: test - - steps: - - uses: actions/checkout@v4 - - uses: ./.github/actions/ci-setup - - - run: pnpm -r build - - run: pnpm -r dts - - - name: Creating .npmrc - run: | - cat << EOF > "$HOME/.npmrc" - //registry.npmjs.org/:_authToken=$NPM_TOKEN - EOF - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - - run: pnpm -r publish --access public diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 196616b0b825..1a19e3e25d31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,7 +78,7 @@ jobs: - name: bump version to ${{ steps.version.outputs.value }} run: | pnpx replace-in-files-cli \ - --string="0.191.0" \ + --string="0.0.0-webstudio-version" \ --replacement="${{ steps.version.outputs.value }}" \ "**/package.json" diff --git a/packages/cli/package.json b/packages/cli/package.json index 2e9e08625567..29e40c24884c 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "webstudio", - "version": "0.191.0", + "version": "0.0.0-webstudio-version", "description": "Webstudio CLI", "author": "Webstudio ", "homepage": "https://webstudio.is", diff --git a/packages/cli/templates/defaults/package.json b/packages/cli/templates/defaults/package.json index b3fd94e9ef9a..eb3a2eef2033 100644 --- a/packages/cli/templates/defaults/package.json +++ b/packages/cli/templates/defaults/package.json @@ -11,12 +11,12 @@ "@remix-run/node": "2.15.0", "@remix-run/react": "2.15.0", "@remix-run/server-runtime": "2.15.0", - "@webstudio-is/react-sdk": "0.191.0", - "@webstudio-is/sdk-components-react-radix": "0.191.0", - "@webstudio-is/sdk-components-react-remix": "0.191.0", - "@webstudio-is/sdk-components-react": "0.191.0", - "@webstudio-is/image": "0.191.0", - "@webstudio-is/sdk": "0.191.0", + "@webstudio-is/react-sdk": "0.0.0-webstudio-version", + "@webstudio-is/sdk-components-react-radix": "0.0.0-webstudio-version", + "@webstudio-is/sdk-components-react-remix": "0.0.0-webstudio-version", + "@webstudio-is/sdk-components-react": "0.0.0-webstudio-version", + "@webstudio-is/image": "0.0.0-webstudio-version", + "@webstudio-is/sdk": "0.0.0-webstudio-version", "isbot": "^5.1.17", "react": "18.3.0-canary-14898b6a9-20240318", "react-dom": "18.3.0-canary-14898b6a9-20240318" diff --git a/packages/cli/templates/ssg/package.json b/packages/cli/templates/ssg/package.json index 3556aa60adc4..5049df2baf2d 100644 --- a/packages/cli/templates/ssg/package.json +++ b/packages/cli/templates/ssg/package.json @@ -8,11 +8,11 @@ "typecheck": "tsc" }, "dependencies": { - "@webstudio-is/react-sdk": "0.191.0", - "@webstudio-is/sdk-components-react-radix": "0.191.0", - "@webstudio-is/sdk-components-react": "0.191.0", - "@webstudio-is/image": "0.191.0", - "@webstudio-is/sdk": "0.191.0", + "@webstudio-is/react-sdk": "0.0.0-webstudio-version", + "@webstudio-is/sdk-components-react-radix": "0.0.0-webstudio-version", + "@webstudio-is/sdk-components-react": "0.0.0-webstudio-version", + "@webstudio-is/image": "0.0.0-webstudio-version", + "@webstudio-is/sdk": "0.0.0-webstudio-version", "react": "18.3.0-canary-14898b6a9-20240318", "react-dom": "18.3.0-canary-14898b6a9-20240318", "vike": "^0.4.206" diff --git a/packages/css-engine/package.json b/packages/css-engine/package.json index e96077463609..ef8092cac325 100644 --- a/packages/css-engine/package.json +++ b/packages/css-engine/package.json @@ -1,6 +1,6 @@ { "name": "@webstudio-is/css-engine", - "version": "0.191.0", + "version": "0.0.0-webstudio-version", "description": "CSS Renderer for Webstudio", "author": "Webstudio ", "homepage": "https://webstudio.is", diff --git a/packages/error-utils/package.json b/packages/error-utils/package.json index d045fc721143..e5ee01070585 100644 --- a/packages/error-utils/package.json +++ b/packages/error-utils/package.json @@ -1,6 +1,6 @@ { "name": "@webstudio-is/error-utils", - "version": "0.191.0", + "version": "0.0.0-webstudio-version", "description": "Error utils for all Webstudio packages", "author": "Webstudio ", "homepage": "https://webstudio.is", diff --git a/packages/fonts/package.json b/packages/fonts/package.json index 455c7f3d704f..541c91d17f5c 100644 --- a/packages/fonts/package.json +++ b/packages/fonts/package.json @@ -1,6 +1,6 @@ { "name": "@webstudio-is/fonts", - "version": "0.191.0", + "version": "0.0.0-webstudio-version", "description": "Fonts utils", "author": "Webstudio ", "homepage": "https://webstudio.is", diff --git a/packages/http-client/package.json b/packages/http-client/package.json index 1d5156739357..f2e25c3d80e1 100644 --- a/packages/http-client/package.json +++ b/packages/http-client/package.json @@ -1,6 +1,6 @@ { "name": "@webstudio-is/http-client", - "version": "0.191.0", + "version": "0.0.0-webstudio-version", "description": "Webstudio HTTP Client", "author": "Webstudio ", "homepage": "https://webstudio.is", diff --git a/packages/icons/package.json b/packages/icons/package.json index 2e771e227a4b..60f1efdf732a 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -1,6 +1,6 @@ { "name": "@webstudio-is/icons", - "version": "0.191.0", + "version": "0.0.0-webstudio-version", "description": "Webstudio Icons", "author": "Webstudio ", "homepage": "https://webstudio.is", diff --git a/packages/image/package.json b/packages/image/package.json index fe81cfc957fd..3a0e648ac308 100644 --- a/packages/image/package.json +++ b/packages/image/package.json @@ -1,6 +1,6 @@ { "name": "@webstudio-is/image", - "version": "0.191.0", + "version": "0.0.0-webstudio-version", "description": "Image optimization", "author": "Webstudio ", "homepage": "https://webstudio.is", diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.json index 5a16ed3cd5b0..3b7f2a4711ff 100644 --- a/packages/react-sdk/package.json +++ b/packages/react-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@webstudio-is/react-sdk", - "version": "0.191.0", + "version": "0.0.0-webstudio-version", "description": "Webstudio JavaScript / TypeScript API", "author": "Webstudio ", "homepage": "https://webstudio.is", diff --git a/packages/sdk-components-react-radix/package.json b/packages/sdk-components-react-radix/package.json index 793f3053a9fe..d60459e0490b 100644 --- a/packages/sdk-components-react-radix/package.json +++ b/packages/sdk-components-react-radix/package.json @@ -1,6 +1,6 @@ { "name": "@webstudio-is/sdk-components-react-radix", - "version": "0.191.0", + "version": "0.0.0-webstudio-version", "description": "Webstudio wrapper for radix library", "author": "Webstudio ", "homepage": "https://webstudio.is", diff --git a/packages/sdk-components-react-remix/package.json b/packages/sdk-components-react-remix/package.json index 7c28427f1351..c51ce184f528 100644 --- a/packages/sdk-components-react-remix/package.json +++ b/packages/sdk-components-react-remix/package.json @@ -1,6 +1,6 @@ { "name": "@webstudio-is/sdk-components-react-remix", - "version": "0.191.0", + "version": "0.0.0-webstudio-version", "description": "Webstudio components for Remix", "author": "Webstudio ", "homepage": "https://webstudio.is", diff --git a/packages/sdk-components-react/package.json b/packages/sdk-components-react/package.json index de833296d00d..ceaec2aaa469 100644 --- a/packages/sdk-components-react/package.json +++ b/packages/sdk-components-react/package.json @@ -1,6 +1,6 @@ { "name": "@webstudio-is/sdk-components-react", - "version": "0.191.0", + "version": "0.0.0-webstudio-version", "description": "Webstudio default library for react", "author": "Webstudio ", "homepage": "https://webstudio.is", diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 0db2c65475e5..f0a374c0ad6a 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@webstudio-is/sdk", - "version": "0.191.0", + "version": "0.0.0-webstudio-version", "description": "Webstudio project data schema", "author": "Webstudio ", "homepage": "https://webstudio.is",