Skip to content

v1.0.2 (#62)

v1.0.2 (#62) #27

Workflow file for this run

name: Publish corgi cli
on:
push:
branches:
- main
paths:
- "cli/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Publish to NPM registry
# Setup .npmrc file on the fly
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- run: npm publish --access public
working-directory: "./cli"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# Publish to Github registry
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: https://npm.pkg.github.com/
- run: npm publish
working-directory: "./cli"
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}