Skip to content

v1.3.5: Update app initialization to support async runtime imports #14

v1.3.5: Update app initialization to support async runtime imports

v1.3.5: Update app initialization to support async runtime imports #14

Workflow file for this run

name: Publish to NPM
on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: 'Version to publish (e.g., 1.0.0)'
required: true
default: '1.0.0'
jobs:
publish:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build project
run: npm run build
- name: Verify CLI
run: |
node dist/cli.js --version
node dist/cli.js --help
- name: Check package contents
run: npm pack --dry-run
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Verify publication
run: |
sleep 30
npm view @morojs/cli version