Update workflow.yml

This commit is contained in:
lowlighter
2021-04-28 23:23:07 +02:00
parent 0802832ab4
commit 41980b77f5

View File

@@ -41,7 +41,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Dprint
run: curl -fsSL https://dprint.dev/install.sh | sh
run: |
curl -fsSL https://dprint.dev/install.sh | sh
PATH="/home/runner/.dprint/bin:$PATH"
- name: Format code
run: npm run fmt
- name: Build lowlighter/metrics:${{ github.head_ref || 'master' }}
@@ -74,7 +76,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Dprint
run: curl -fsSL https://dprint.dev/install.sh | sh
run: |
curl -fsSL https://dprint.dev/install.sh | sh
PATH="/home/runner/.dprint/bin:$PATH"
- name: Format code
run: npm run fmt
- name: Publish formatted code