Skip to content

Commit b7bc865

Browse files
committed
Setup auto-release
1 parent 386f584 commit b7bc865

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
tags:
8+
- '*'
79
pull_request:
810
branches:
911
- main
@@ -116,6 +118,18 @@ jobs:
116118
name: runtime-rescript
117119
path: _build/default/packages/runtime/rescript
118120

121+
- name: Install dune-release
122+
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' && matrix.ocaml-compiler == '5.4.0'
123+
run: opam install dune-release -y
124+
125+
- name: Release to opam
126+
uses: davesnx/[email protected]
127+
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' && matrix.ocaml-compiler == '5.4.0'
128+
with:
129+
packages: 'styled-ppx'
130+
changelog: './CHANGES.md'
131+
github-token: ${{ secrets.GH_TOKEN }}
132+
119133
- name: Save opam cache
120134
uses: actions/cache/save@v4
121135
if: steps.opam-cache.outputs.cache-hit != 'true'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"repository": {
2626
"type": "git",
27-
"url": "https://github.com/davesnx/styled-ppx.git"
27+
"url": "git+https://github.com/davesnx/styled-ppx.git"
2828
},
2929
"peerDependencies": {
3030
"rescript": "9.x || 10.x"

0 commit comments

Comments
 (0)