v2.0.0 (#65) #28
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: 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}} |