Skip to content

fix: use lerna publish #5

fix: use lerna publish

fix: use lerna publish #5

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: Lerna Publish
on:
push:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
# - uses: leafo/gh-actions-lua@v10.0.0
# with:
# luaVersion: 5.1
- name: Install Lua and LuaRocks
run: |
sudo apt-get update
sudo apt-get install lua5.1
sudo apt-get install luarocks
- name: Install LuaSocket
run: sudo luarocks install luasocket
- run: npm ci
- run: npm test
- run: npm run publish
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}