PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.27.2
Code Block Pro – Beautiful Syntax Highlighting v1.27.2
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
code-block-pro / build / shiki / samples / yaml.sample

yaml.sample in Code Block Pro – Beautiful Syntax Highlighting 1.27.2, at build/shiki/samples/yaml.sample

51 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 name: Check dist/
2
3 on:
4 push:
5 branches:
6 - main
7 paths-ignore:
8 - '**.md'
9 pull_request:
10 paths-ignore:
11 - '**.md'
12
13 jobs:
14 check-dist:
15 runs-on: ubuntu-latest
16
17 steps:
18 - uses: actions/checkout@v3
19
20 - name: Set Node.js 16.x
21 uses: actions/setup-node@v3
22 with:
23 node-version: 16.x
24 cache: npm
25
26 - name: Install dependencies
27 run: npm ci
28
29 - name: Rebuild the dist/ directory
30 run: |
31 npm run build:compile
32 npm run build:package
33
34 - name: Compare the expected and actual dist/ directories
35 run: |
36 if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
37 echo "Detected uncommitted changes after build. See status below:"
38 git diff
39 exit 1
40 fi
41 id: diff
42
43 # If index.js was different than expected, upload the expected version as an artifact
44 - uses: actions/upload-artifact@v3
45 if: ${{ failure() && steps.diff.conclusion == 'failure' }}
46 with:
47 name: dist
48 path: dist/
49
50 # From https://github.com/actions/add-to-project/blob/main/.github/workflows/check-dist.yml
51