update ci [ci skip]

This commit is contained in:
bmatthieu3
2023-05-25 18:57:18 +02:00
committed by Matthieu Baumann
parent eedb5b2bdf
commit 6cce07cdfd
2 changed files with 7 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ on:
types: [created]
jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- name: "Checkout branch ${{ github.head_ref }}"
@@ -20,12 +20,13 @@ jobs:
- name: "Install the rust compiler"
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
- name: "Install wasm-pack"
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -y
- name: "Install dependencies"
run: |
npm ci
npm install
- name: "Build Aladin Lite"
run: |
npm run build
@@ -33,7 +34,7 @@ jobs:
run: npm test
publish-npm:
needs: build
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -44,12 +45,13 @@ jobs:
- name: "Install the rust compiler"
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
- name: "Install wasm-pack"
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -y
- name: "Install dependencies"
run: |
npm ci
npm install
- name: "Build Aladin Lite"
run: |
npm run build