Skip to content

1.2.5

1.2.5 #17

Workflow file for this run

name: Publish package
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies and build
run: |
pnpm install
pnpm run build
cp ../../README.md .
cp ../../LICENSE .
working-directory: ./packages/robindoc
- name: Publish on main
if: "!contains(github.ref_name, 'canary')"
run: |
npm set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}
npm publish --access public
working-directory: ./packages/robindoc
- name: Publish on canary
if: contains(github.ref_name, 'canary')
run: |
npm set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}
npm version --no-git-tag-version ${{github.ref_name}}
npm publish --tag canary --access public
working-directory: ./packages/robindoc