Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Fix npm publish token (#515)

Bogdan Chadkin44e5c8bc77c6
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 3fcfe23e4d..a349ac8f7d 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -17,8 +17,8 @@ jobs:
node-version: 16
registry-url: "https://registry.npmjs.org"
cache: "yarn"
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: yarn
- run: yarn turbo run build
- run: yarn turbo run publish-to-npm
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/bin/publish-to-npm.sh b/bin/publish-to-npm.sh
index 5738c0d590..7d09ef37bc 100644
--- a/bin/publish-to-npm.sh
+++ b/bin/publish-to-npm.sh
@@ -9,5 +9,5 @@ echo Current $npm_package_name $NPM_VERSION
if [[ $PKG_VERSION != $NPM_VERSION ]]; then
echo Publishing $npm_package_name $PKG_VERSION
- npm publish --access public
+ npm publish --access public --registry 'https://registry.npmjs.org/'
fi