mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-01 04:22:03 +08:00
chore: Use pnpm in GitHub action
This commit is contained in:
parent
de892aaa2b
commit
8c844eb23a
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: update
|
name: build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -21,16 +21,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: "14"
|
node-version: "14"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: cd backend && npm i
|
run: npm install -g pnpm && cd backend && pnpm i
|
||||||
- name: Test
|
- name: Test
|
||||||
run: cd backend && npm test
|
run: cd backend && pnpm test
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cd backend && npm run build
|
run: cd backend && pnpm run build
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
if: contains(github.event.head_commit.message, '#build')
|
if: contains(github.event.head_commit.message, '#build')
|
||||||
run: |
|
run: |
|
||||||
git config user.email github-actions
|
git config user.email github-actions
|
||||||
git config user.name github-actions@github.com
|
git config user.name github-actions@github.com
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Build sub-store.min.js" -a
|
git commit -m "Release" -a
|
||||||
git push
|
git push
|
||||||
|
Loading…
x
Reference in New Issue
Block a user