Skip to content

Testing publishing to npm with GitHub actions #8. #8

Testing publishing to npm with GitHub actions #8.

Testing publishing to npm with GitHub actions #8. #8

name: testing-publish-to-npmjs
on:
push:
env:
BUILD_TYPE: Release
MACOSX_DEPLOYMENT_TARGET: 10.15
jobs:
emscripten:
name: libcellml.js
runs-on: macos-13
steps:
- name: Get package
shell: bash
run: |
curl -o package.zip -L -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/cellml/libcellml/actions/artifacts/2096475939/zip
echo "1"
ls
unzip package.zip
echo "2"
ls
tar -xzf libcellml.js-0.6.0-rc.3.tgz
echo "3"
ls
- name: Update package
shell: bash
run: |
cd package
ls
cat package.json
- name: Publish package
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: package