File tree Expand file tree Collapse file tree 4 files changed +14416
-18385
lines changed
Expand file tree Collapse file tree 4 files changed +14416
-18385
lines changed Original file line number Diff line number Diff line change 1+ # This is a basic workflow to help you get started with Actions
2+
3+ name : Build
4+
5+ # Controls when the workflow will run
6+ on :
7+ workflow_dispatch :
8+ push :
9+ branches : ["main"]
10+ pull_request :
11+ branches : ["main"]
12+ permissions :
13+ contents : write
14+
15+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+ jobs :
17+ # This workflow contains a single job called "build"
18+ build :
19+ # The type of runner that the job will run on
20+ runs-on : ubuntu-latest
21+ defaults :
22+ run :
23+ working-directory : website
24+
25+ # Steps represent a sequence of tasks that will be executed as part of the job
26+ steps :
27+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
28+ - uses : actions/checkout@v6
29+ - uses : actions/setup-node@v6
30+ with :
31+ node-version : 22
32+
33+ - name : Versions
34+ run : |
35+ node -v
36+ npm -v
37+
38+ - name : Install dependencies
39+ run : npm install
40+
41+ # Runs a set of commands using the runners shell
42+ - name : Run a multi-line script
43+ run : |
44+ npm run build
45+
46+ - name : Run Prettier
47+ # fix markdown files in /blog
48+ run : npm run prettier:fix
Original file line number Diff line number Diff line change 1- const lightCodeTheme = require ( 'prism-react-renderer/themes/github' ) ;
2- const darkCodeTheme = require ( 'prism-react-renderer/themes/dracula' ) ;
1+ const { themes} = require ( 'prism-react-renderer' ) ;
2+
3+ const lightCodeTheme = themes . github ;
4+ const darkCodeTheme = themes . dracula ;
35const site = require ( './site.config' ) ;
46
57
You can’t perform that action at this time.
0 commit comments