Skip to content

npm-release

npm-release #328

Workflow file for this run

name: npm-release
on:
workflow_run:
workflows: [test]
types: [completed]
branches: [main]
jobs:
npm-release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
env:
NODE_ENV: 'production'
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node.js ⚙️ - Cache dependencies ⚡ - Install dependencies 🔧
uses: ./.github/workflows/actions/setup_node-cache_dep-install_dep
- name: Build 🏗️
run: npm run build
- name: Release 🚀
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release