Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 53 additions & 37 deletions .github/workflows/build-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,64 @@ name: Build develop branch

on:
push:
branches: [ develop ]
branches: [develop]
pull_request:
branches: [ develop ]
branches: [develop]

concurrency:
group: build-develop
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm install
- run: npm run build:vosviewer
- run: npm run build:dimensions
- run: npm run build:zeta-alpha
- run: npm run build:rori
- run: npm run build-component-package
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '16'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to update node-version?

cache: 'npm'

- run: npm install
- run: npm run build:vosviewer
- run: npm run build:dimensions
- run: npm run build:zeta-alpha
- run: npm run build:rori
- run: npm run build-component-package

- name: Upload VOSviewer Online app artifact
uses: actions/upload-artifact@v3
with:
name: vosviewer-online-app
path: dist/vosviewer-online
- name: Upload Dimensions app artifact
uses: actions/upload-artifact@v3
with:
name: vosviewer-online-dimensions-app
path: dist/vosviewer-online-dimensions
- name: Upload Zeta Alpha app artifact
uses: actions/upload-artifact@v3
with:
name: vosviewer-online-zeta-alpa-app
path: dist/vosviewer-online-zeta-alpha
- name: Upload RoRI app artifact
uses: actions/upload-artifact@v3
with:
name: vosviewer-online-rori-app
path: dist/vosviewer-online-rori
- name: Upload VOSviewer Online component package artifact
uses: actions/upload-artifact@v3
with:
name: vosviewer-online-lib
path: lib
- name: Upload VOSviewer Online app artifact
uses: actions/upload-artifact@v4
with:
name: vosviewer-online-app
path: dist/vosviewer-online
retention-days: 60

- name: Upload Dimensions app artifact
uses: actions/upload-artifact@v4
with:
name: vosviewer-online-dimensions-app
path: dist/vosviewer-online-dimensions
retention-days: 60

- name: Upload Zeta Alpha app artifact
uses: actions/upload-artifact@v4
with:
name: vosviewer-online-zeta-alpa-app
path: dist/vosviewer-online-zeta-alpha
retention-days: 60

- name: Upload RoRI app artifact
uses: actions/upload-artifact@v4
with:
name: vosviewer-online-rori-app
path: dist/vosviewer-online-rori
retention-days: 60

- name: Upload VOSviewer Online component package artifact
uses: actions/upload-artifact@v4
with:
name: vosviewer-online-lib
path: lib
retention-days: 60
90 changes: 53 additions & 37 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,64 @@ name: Build master branch

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

concurrency:
group: build-master
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm install
- run: npm run build:vosviewer
- run: npm run build:dimensions
- run: npm run build:zeta-alpha
- run: npm run build:rori
- run: npm run build-component-package
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '16'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

cache: 'npm'

- run: npm install
- run: npm run build:vosviewer
- run: npm run build:dimensions
- run: npm run build:zeta-alpha
- run: npm run build:rori
- run: npm run build-component-package

- name: Upload VOSviewer Online app artifact
uses: actions/upload-artifact@v3
with:
name: vosviewer-online-app
path: dist/vosviewer-online
- name: Upload Dimensions app artifact
uses: actions/upload-artifact@v3
with:
name: vosviewer-online-dimensions-app
path: dist/vosviewer-online-dimensions
- name: Upload Zeta Alpha app artifact
uses: actions/upload-artifact@v3
with:
name: vosviewer-online-zeta-alpa-app
path: dist/vosviewer-online-zeta-alpha
- name: Upload RoRI app artifact
uses: actions/upload-artifact@v3
with:
name: vosviewer-online-rori-app
path: dist/vosviewer-online-rori
- name: Upload VOSviewer Online component package artifact
uses: actions/upload-artifact@v3
with:
name: vosviewer-online-lib
path: lib
- name: Upload VOSviewer Online app artifact
uses: actions/upload-artifact@v4
with:
name: vosviewer-online-app
path: dist/vosviewer-online
retention-days: 60

- name: Upload Dimensions app artifact
uses: actions/upload-artifact@v4
with:
name: vosviewer-online-dimensions-app
path: dist/vosviewer-online-dimensions
retention-days: 60

- name: Upload Zeta Alpha app artifact
uses: actions/upload-artifact@v4
with:
name: vosviewer-online-zeta-alpa-app
path: dist/vosviewer-online-zeta-alpha
retention-days: 60

- name: Upload RoRI app artifact
uses: actions/upload-artifact@v4
with:
name: vosviewer-online-rori-app
path: dist/vosviewer-online-rori
retention-days: 60

- name: Upload VOSviewer Online component package artifact
uses: actions/upload-artifact@v4
with:
name: vosviewer-online-lib
path: lib
retention-days: 60
21 changes: 19 additions & 2 deletions .github/workflows/publish-on-cloudsmith.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,52 @@
name: Push NPM
on: push

on:
push:
branches: [master]

concurrency:
group: publish-npm
cancel-in-progress: false

jobs:
push:
runs-on: ubuntu-latest
name: NPM Push Demo
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3

- uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'npm'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same.


- run: npm install
# - run: npm run build:vosviewer
# - run: npm run build:dimensions
# - run: npm run build:zeta-alpha
# - run: npm run build:rori
- run: npm run build-component-package

# - name: Upload Dimensions app artifact
# uses: actions/upload-artifact@v4
# with:
# name: vosviewer-online-dimensions-app
# path: dist/vosviewer-online-dimensions

- name: Create npm package
run: cd lib && npm pack

- name: Get package filename
id: create-package
run: echo "package_file=$(ls lib/*.tgz | xargs basename)" >> $GITHUB_OUTPUT

- name: Upload npm package artifact
uses: actions/upload-artifact@v4
with:
name: vosviewer-online.tgz
path: "lib/${{ steps.create-package.outputs.package_file }}"
retention-days: 60

- name: Cloudsmith Push
uses: cloudsmith-io/action@v0.6.14
with:
Expand Down