File tree 4 files changed +25
-7
lines changed
4 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 5
5
{ "repo" : " rehype-pretty/rehype-pretty-code" }
6
6
],
7
7
"commit" : false ,
8
- "fixed" : [],
8
+ "fixed" : [[ " rehype-pretty-code " , " @rehype-pretty/transformers " ] ],
9
9
"linked" : [],
10
10
"access" : " public" ,
11
11
"baseBranch" : " master" ,
Original file line number Diff line number Diff line change @@ -2,13 +2,18 @@ name: Release
2
2
3
3
on :
4
4
push :
5
- branches : ['main', 'next']
5
+ branches :
6
+ - master
7
+ - next
6
8
7
9
defaults :
8
10
run :
9
11
shell : bash
10
12
11
- concurrency : ${{ github.workflow }}-${{ github.ref }}
13
+ concurrency :
14
+ group : ${{ github.workflow }}-${{ github.ref }}
15
+ cancel-in-progress : true
16
+
12
17
13
18
env :
14
19
ACTIONS_RUNNER_DEBUG : true
20
25
jobs :
21
26
release :
22
27
name : ' Release'
28
+ if : github.repository == 'rehype-pretty/rehype-pretty-code' && !contains(github.event.head_commit.message, '[skip ci]')
23
29
runs-on : ['ubuntu-latest']
24
30
permissions :
25
31
contents : write
28
34
- name : ' Checkout Repository'
29
35
uses : actions/checkout@v4
30
36
37
+
31
38
- name : ' Get pnpm Version'
32
39
id : pnpm-version
33
40
run : |
@@ -47,10 +54,21 @@ jobs:
47
54
registry-url : ' https://registry.npmjs.org'
48
55
49
56
- name : ' Install Dependencies'
50
- run : pnpm install
57
+ run : pnpm install --frozen-lockfile
58
+
59
+ - name : Check for unreleased changesets
60
+ id : has-changesets
61
+ uses : andstor/file-existence-action@v3
62
+ with :
63
+ files : " .changeset/!(README).md"
51
64
52
65
- name : ' Build Packages'
53
- run : pnpm build
66
+ if : steps.has-changesets.outputs.files_exists == 'true'
67
+ run : |
68
+ pnpm lint && pnpm format
69
+ pnpm typecheck
70
+ pnpm test
71
+ pnpm build
54
72
55
73
- name : Create Release Pull Request or Publish
56
74
id : changesets
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rehype-pretty-code" ,
3
- "version" : " 0.13.2 " ,
3
+ "version" : " 0.13.1 " ,
4
4
"description" : " Beautiful code for your MD/MDX docs." ,
5
5
"homepage" : " https://rehype-pretty.pages.dev" ,
6
6
"type" : " module" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @rehype-pretty/transformers" ,
3
3
"description" : " Shiki transformer that adds a copy button to code blocks" ,
4
- "version" : " 0.13.2 " ,
4
+ "version" : " 0.13.1 " ,
5
5
"homepage" : " https://rehype-pretty.pages.dev" ,
6
6
"private" : true ,
7
7
"type" : " module" ,
You can’t perform that action at this time.
0 commit comments