Skip to content

Commit 914332f

Browse files
committed
updated npm workflow
1 parent ae10edc commit 914332f

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- name: Checkout code (recursive submodules)
15+
- name: Checkout code
1616
uses: actions/checkout@v4
17-
with:
18-
submodules: recursive
19-
fetch-depth: 0
2017

21-
- name: Prepare submodule branches for build
22-
working-directory: LiaScript
23-
run: |
24-
git fetch origin
25-
git checkout -B feat/fullPage origin/feat/fullPage
26-
git checkout -B feat/capacitor8 origin/feat/capacitor8
27-
git checkout development
18+
- name: Initialize LiaScript submodule
19+
run: git submodule update --init LiaScript
2820

2921
- name: Setup Node.js
3022
uses: actions/setup-node@v4
@@ -35,10 +27,20 @@ jobs:
3527
- name: Install dependencies
3628
run: npm ci
3729

38-
- name: Build everything
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
3941
run: npm run build:all
4042

4143
- name: Publish to npmjs.com
4244
run: npm publish --access public --tag latest
4345
env:
44-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
46+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_KEY }}

0 commit comments

Comments
 (0)