Release-V1 #9
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
on: | |
workflow_dispatch: | |
name: Release-V1 | |
jobs: | |
build: | |
name: build library | |
runs-on: ubuntu-latest | |
steps: | |
# Setup environment | |
- uses: actions/checkout@v4 | |
with: | |
ref: v1 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
# Show package.json | |
- name: Show package.json | |
run: 'cat package.json' | |
# Install dependencies | |
- name: Install dependencies | |
run: npm install | |
# Build | |
- name: Prepare | |
run: npm run generate-prisma | |
- name: Build | |
run: npm run build | |
# Light tests (docker tests not supported yet) | |
- name: Light tests | |
run: npm run no-docker-examples | |
# Publish | |
- name: Build for dist & Publish | |
run: npm run dist | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |