Skip to content

fix: action name

fix: action name #6

name: Push NPM
on: push
jobs:
push:
runs-on: ubuntu-latest
name: NPM Push Demo
steps:
- uses: actions/checkout@v4
- 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
# - 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: Upload npm package artifact
uses: actions/upload-artifact@v4
with:
name: vosviewer-online.tgz
path: lib/*.tgz
- name: Push
id: push
uses: cloudsmith-io/action
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: "push"
format: "npm"
owner: "dimensions"
repo: "ds-vosviewer"
file: vosviewer-online.tgz