Update to use pnpm instead of npm (#7)
Reviewed-on: #7 Co-authored-by: chrisdill <chrisdude134@gmail.com> Co-committed-by: chrisdill <chrisdude134@gmail.com>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
name: Build
|
||||
on:
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
@ -7,27 +7,38 @@ on:
|
||||
branches:
|
||||
- master
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: 🔧 Setup node
|
||||
- name: Checkout project
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 🔧 Install pnpm
|
||||
uses: https://github.com/pnpm/action-setup@v4
|
||||
with:
|
||||
version: 9
|
||||
run_install: false
|
||||
|
||||
- name: 🔧 Install node
|
||||
uses: https://github.com/actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18.0.x'
|
||||
- name: 🧱 Install node packages
|
||||
run: npm ci
|
||||
- name: ✅ svelte-check
|
||||
run: npm run check
|
||||
node-version: 20
|
||||
cache: pnpm
|
||||
|
||||
- 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
|
||||
|
Reference in New Issue
Block a user