Skip to content

🎉 v0.2.0

🎉 v0.2.0 #3

Workflow file for this run

# This workflow will publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Publish Node.js Package
on:
release:
types: [created]
workflow_dispatch:
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: master
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: yarn install
working-directory: packages/server
- run: yarn global add @nestjs/cli
- run: yarn run build
working-directory: packages/server
- run: npm publish --access public
working-directory: packages/server
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}