Skip to content

Commit

Permalink
setup pnpm in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Jan 26, 2023
1 parent 5e30443 commit 3748163
Showing 1 changed file with 31 additions and 27 deletions.
58 changes: 31 additions & 27 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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 }}

0 comments on commit 3748163

Please sign in to comment.