Skip to content

Upgrade to LiaScript 1.0.5 #30

Upgrade to LiaScript 1.0.5

Upgrade to LiaScript 1.0.5 #30

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- "*.*.*"
workflow_dispatch:
jobs:
publish:
name: Build and Publish to npmjs.com
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Initialize LiaScript submodule
run: git submodule update --init --recursive LiaScript
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Set ELM_HOME
run: echo "ELM_HOME=${GITHUB_WORKSPACE}/.elm" >> $GITHUB_ENV
- name: Fetch additional LiaScript branches
run: |
cd LiaScript
git fetch origin feat/fullPage:refs/heads/feat/fullPage feat/capacitor8:refs/heads/feat/capacitor8
- name: Build LiaScript prebuild and apply Elm patches
run: |
cd LiaScript
npm install
npm run prebuild
make -C patches/elm-patch ELM_HOME=${ELM_HOME} || echo "Patches already applied or skipped"
rm -rf elm-stuff .parcel-cache
- name: Build and prepare for publish
run: npm run build:all
- name: Publish to npmjs.com
run: npm publish --access public --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_KEY }}