Skip to content

Introduce monorepo to manage packages using pnpm (#880) #33

Introduce monorepo to manage packages using pnpm (#880)

Introduce monorepo to manage packages using pnpm (#880) #33

name: create-yorkie-app-publish
on:
workflow_dispatch:
push:
branches:
- main
paths:
- packages/create-yorkie-app/**
- examples/**
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node 🔧
uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install and Build 🔧
run: |
cd packages/create-yorkie-app
pnpm install
pnpm build
- name: Publish 🚀
run: cd packages/create-yorkie-app && pnpm publish --provenance
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}