Skip to content

Introduce monorepo to manage packages using pnpm #81

Introduce monorepo to manage packages using pnpm

Introduce monorepo to manage packages using pnpm #81

Workflow file for this run

name: npm-publish
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- uses: pnpm/action-setup@v2

Check failure on line 14 in .github/workflows/npm-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/npm-publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
with:
version: 8
- name: Setup Node 🔧
uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml
registry-url: 'https://registry.npmjs.org'
- name: Cache pnpm store
id: cache
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install
- run: pnpm sdk build
- run: pnpm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}