diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 93a46eb..7ccc847 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -59,7 +59,7 @@ jobs: run: npm run semantic-release:all - name: Deploy to netlify - run: npx netlify deploy --dir=dist/web-app --prod + run: npm run netlify:deploy env: NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} diff --git a/package.json b/package.json index 9348f40..7a08790 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "build:all": "nx run-many --target=build --all", "semantic-release:all": "nx run-many --target=semantic-release --all", "benchmark": "nx run benchmark:build && node dist/benchmark/main.js", - "web-app:serve": "nx run web-app:serve" + "web-app:serve": "nx run web-app:serve", + "netlify:deploy": "netlify deploy --prod --dir=dist/web-app" }, "dependencies": { "@emotion/react": "11.11.1",