Files
OpenNoodl/.github/workflows/publish-cloud-runtime.yml
Michael Cartner b9c60b07dc Initial commit
Co-Authored-By: Eric Tuvesson <eric.tuvesson@gmail.com>
Co-Authored-By: mikaeltellhed <2311083+mikaeltellhed@users.noreply.github.com>
Co-Authored-By: kotte <14197736+mrtamagotchi@users.noreply.github.com>
Co-Authored-By: Anders Larsson <64838990+anders-topp@users.noreply.github.com>
Co-Authored-By: Johan  <4934465+joolsus@users.noreply.github.com>
Co-Authored-By: Tore Knudsen <18231882+torekndsn@users.noreply.github.com>
Co-Authored-By: victoratndl <99176179+victoratndl@users.noreply.github.com>
2024-01-26 11:52:55 +01:00

42 lines
1.1 KiB
YAML

name: Publish cloud-runtime
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
concurrency:
group: "publish-cloud-runtime"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node env 🏗
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies 🏗
run: npm install
- name: Build
run: npm run build:cloud-runtime
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
name: "noodl-cloud-runtime"
path: "packages/noodl-viewer-cloud/publish"
retention-days: "12"
- name: Publish
run: npm publish --access=public
working-directory: packages/noodl-viewer-cloud/publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}