juno-icon-v1.77.0 #194
Workflow file for this run
This file contains 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: 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 }} |