fix: Only adapt the distributed files, not the source ones by using t… #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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 }}" | |
- name: Cloudsmith Push | |
uses: cloudsmith-io/action@v0.6.14 | |
with: | |
api-key: ${{ secrets.CLOUDSMITH_API_KEY }} | |
command: "push" | |
format: "npm" | |
owner: "dimensions" | |
repo: "ds-vosviewer" | |
file: "lib/${{ steps.create-package.outputs.package_file }}" |