Skip to content

Commit

Permalink
fix #6: change nodejs package action steps (#19)
Browse files Browse the repository at this point in the history
* documentation: add quick start, add publish command to package.json

* fix: change nodejs package action steps

---------

Co-authored-by: Egor Fedoseev <[email protected]>
  • Loading branch information
egor-progger and egor-progger authored Mar 22, 2024
1 parent 3b5b148 commit 8ebce63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 8ebce63

Please sign in to comment.