Update to use pnpm instead of npm

This commit is contained in:
2024-09-01 14:01:24 +01:00
parent d471e99f76
commit d24f16b6e9
5 changed files with 1314 additions and 2134 deletions

View File

@ -1,5 +1,6 @@
name: Build
on:
on:
workflow_dispatch:
push:
branches:
- master
@ -7,27 +8,32 @@ on:
branches:
- master
runs-on: ubuntu-latest
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 🔧 Setup node
uses: https://github.com/actions/setup-node@v4
- name: Checkout project
uses: actions/checkout@v2
- name: 🔧 Install pnpm
uses: https://github.com/actions/pnpm-action-setup@v4
with:
node-version: '18.0.x'
- name: 🧱 Install node packages
run: npm ci
- name: ✅ svelte-check
run: npm run check
version: 9
run_install: false
- name: 🧱 Install packages
run: pnpm install
- name: ✅ Check project
run: pnpm run check
- name: 🔨 Build project
run: npm run build
- name: upload artifact
run: pnpm run build
- name: Upload artifact
run: |
tar -czf build.tar.gz build
curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \
--upload-file build.tar.gz \
https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz
echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz
echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz