setup pnpm in CI

This commit is contained in:
Pig Fang 2023-01-26 23:10:48 +08:00
parent 5e30443252
commit 3748163394
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2

View File

@ -10,30 +10,34 @@ jobs:
name: 'Build and Publish'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 10
- name: Checkout distribution repository
uses: actions/checkout@v2
with:
repository: bs-community/plugins-dist
path: '.dist'
token: ${{ secrets.GH_TOKEN }}
- name: Download nano
run: ./download-nano.ps1
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: ./nano
env:
RUST_LOG: info
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
run: ./publish.ps1
shell: pwsh
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 10
- name: Checkout distribution repository
uses: actions/checkout@v2
with:
repository: bs-community/plugins-dist
path: '.dist'
token: ${{ secrets.GH_TOKEN }}
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.2
with:
version: 7.26.0
- name: Download nano
run: ./download-nano.ps1
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: ./nano
env:
RUST_LOG: info
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
run: ./publish.ps1
shell: pwsh
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}