From 519465aca988e38823ce8e44b73b216236f35ef9 Mon Sep 17 00:00:00 2001 From: Francisco Date: Thu, 28 Mar 2024 15:01:36 -0500 Subject: [PATCH] update nodejs.yml so publish is only done after release deployment --- .github/workflows/nodejs.yml | 11 +++++++---- package.json | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index af2a4eb..0ccaea6 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -4,10 +4,13 @@ name: Node.js CI on: - push: - branches: [master] - pull_request: - branches: [master] + workflow_dispatch: + inputs: + logLevel: + description: 'Message' + required: false + release: + types: [created] jobs: build: diff --git a/package.json b/package.json index 016f4d0..7574692 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@unicef/material-slate", "version": "0.5.0", "description": "Material UI rich text editor based on Slate for react", - "main": "./dist/index.js", + "main": "index.js", "homepage": "https://unicef.github.io/material-slate", "repository": { "type": "git",