Skip to content

Commit 69b7f2c

Browse files
updated for testing
1 parent 167fcfe commit 69b7f2c

1 file changed

Lines changed: 42 additions & 31 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 42 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,46 @@
11
name: Publish to npm
22

3-
on:
4-
push:
5-
tags:
6-
- "*.*.*"
7-
workflow_dispatch:
3+
on: [push]
4+
# push:
5+
# tags:
6+
# - "*.*.*"
7+
# workflow_dispatch:
88

99
jobs:
10-
publish:
11-
name: Build and Publish to npmjs.com
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- name: Checkout code (recursive submodules)
16-
uses: actions/checkout@v4
17-
with:
18-
submodules: recursive
19-
20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: "24"
24-
registry-url: "https://registry.npmjs.org"
25-
26-
- name: Install dependencies
27-
run: npm ci
28-
29-
- name: Build everything
30-
run: npm run build:all
31-
32-
- name: Publish to npmjs.com
33-
run: npm publish --access public
34-
env:
35-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10+
publish:
11+
name: Build and Publish to npmjs.com
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Initialize LiaScript submodule
19+
run: git submodule update --init LiaScript
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: "24"
25+
registry-url: "https://registry.npmjs.org"
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Set ELM_HOME
31+
run: echo "ELM_HOME=${GITHUB_WORKSPACE}/.elm" >> $GITHUB_ENV
32+
33+
- name: Load additional branches
34+
run: |
35+
cd LiaScript
36+
git fetch origin feat/fullPage:refs/heads/feat/fullPage feat/capacitor8:refs/heads/feat/capacitor8
37+
npm install
38+
npm run prebuild
39+
40+
- name: Build and prepare for publish
41+
run: npm run build:all
42+
43+
- name: Publish to npmjs.com
44+
run: npm publish --access public
45+
env:
46+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)