Skip to content

publish

publish #44

Workflow file for this run

name: publish
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'yarn'
- name: Install
run: yarn --frozen-lockfile
- name: Configure CI Git User
run: |
git config --global user.name "Plank Cao"
git config --global user.email [email protected]
git remote set-url origin https://$GITHUB_ACTOR:[email protected]/isatiso/node-tarpit.git
- name: Publish package
run: |
npm set registry=https://registry.npmjs.org
npm set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
lerna run build
lerna publish patch --no-verify-access --registry https://registry.npmjs.org -y
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}