Skip to content

v0.0.6

v0.0.6 #46

Workflow file for this run

# This workflow will run tests using node and then 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: Node.js Package
on:
release:
types: [released]
branches:
- vq-chat
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo "${{github.ref}}"
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Setup pnpm
with:
run_install: false
version: 9
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
registry-url: 'https://registry.npmjs.org'
cache-dependency-path: 'pnpm-lock.yaml'
- name: Install dependencies 📦️
run: pnpm install
- name: Build
run: pnpm --filter vq-chat build:ce
- name: Jump to dist
run: |
cd ./apps/vq-web-component/VQ-Chat
- run: git config --global user.name "Github CD bot"
- run: git config --global user.email "aaron.hui.ji@outlook.com"
- name: publish 🚀️
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
npm version ${{ github.event.release.tag_name }}
npm publish
working-directory: ./apps/vq-web-component/VQ-Chat
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}