From 8ebce63ab14f8d94410c6666339caa33c2ad0a70 Mon Sep 17 00:00:00 2001 From: Egor Fedoseev <7858573+egor-progger@users.noreply.github.com> Date: Fri, 22 Mar 2024 23:12:59 +0300 Subject: [PATCH] fix #6: change nodejs package action steps (#19) * documentation: add quick start, add publish command to package.json * fix: change nodejs package action steps --------- Co-authored-by: Egor Fedoseev <7858573+anarendil@users.noreply.github.com> --- .github/workflows/npm-publish.yml | 18 ++---------------- package.json | 2 +- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 5548c6d..9314da3 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -8,21 +8,7 @@ on: types: [created] jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - run: npm ci - - run: npm run clean - - run: npm run build - - run: npm run copy-css-to-es - - run: npm run copy-css-to-lib - - publish-npm: - needs: build + publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -31,6 +17,6 @@ jobs: node-version: 16 registry-url: https://registry.npmjs.org/ - run: npm ci - - run: npm publish --access public + - run: npm run publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/package.json b/package.json index dd4f854..acbcc2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pointlinejs", - "version": "0.1.18", + "version": "0.1.19", "description": "JavaScipt library for visualization of tree diagrams", "directories": { "example": "examples"