Skip to content

publish to npm and cdn #2

publish to npm and cdn

publish to npm and cdn #2

Workflow file for this run

name: publish to npm and cdn
on:
push:
branches:
- master
paths:
- 'packages/scu-pecourse-html/package.json'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: node --version
- run: corepack enable
- run: pnpm i
- run: pnpm -r build
- name: publish
run: |
cd packages/scu-pecourse-html
pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}