Skip to content

v0.3.0

v0.3.0 #15

Workflow file for this run

name: Publish to NPM
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
working-directory: ./cli
run: npm ci && npm run build
- name: Change package version according to release tag
working-directory: ./cli
run: npm version ${{ github.ref_name }}
- name: Publish package on NPM 📦
run: npm publish
working-directory: ./cli
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}