Skip to content

juno-icon-v1.78.0

juno-icon-v1.78.0 #196

name: Publish Package to npm
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
environment: npm
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- name: Install 👾
run: yarn
- name: Build core 📦
if: ${{ contains(github.ref, 'juno-core') }}
run: yarn workspace @ringcentral/juno run release
- name: Publish core 🚀
if: ${{ contains(github.ref, 'juno-core') }}
run: npm publish ./packages/juno-core/dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build icon 📦
if: ${{ contains(github.ref, 'juno-icon') }}
run: yarn workspace @ringcentral/juno-icon run release
- name: Publish icon 🚀
if: ${{ contains(github.ref, 'juno-icon') }}
run: npm publish ./packages/juno-icon/dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}