Skip to content

fix windows build (#78) #62

fix windows build (#78)

fix windows build (#78) #62

name: Publish server
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Build
run: |-
cd server
VERSION=`cat ../package.json| grep '"version":'`
sed -i "3s/.*/$VERSION/" package.json
npm install
npm run compile
- name: Publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./server/package.json