Skip to content

πŸ“¦ Publish to npm #12

πŸ“¦ Publish to npm

πŸ“¦ Publish to npm #12

Workflow file for this run

name: πŸ“¦ Publish to npm
on:
workflow_run:
workflows:
- 'πŸŽ‰ Release'
types:
- completed
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- run: npm -v
- run: npm install -g pnpm
- run: pnpm install
- run: npm run build
- run: ls -la dist
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}