v3.50.1 #147
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cli Publish To Npm | |
on: | |
release: | |
types: [published] | |
# push: | |
# paths: | |
# - '.github/workflows/cli-publish.yml' | |
jobs: | |
cli-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: latest | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'pnpm' | |
node-version: '21' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Get last repo version | |
run: git pull origin master | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build Lib | |
run: pnpm --filter @mazui/cli build | |
- name: Publish package to npm registry | |
run: cd packages/maz-cli && pnpm publish --access public --no-git-checks | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |