Commit 233ed0c 1 parent a1e9c1b commit 233ed0c Copy full SHA for 233ed0c
File tree 5 files changed +20
-7
lines changed
5 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
push :
6
6
branches :
7
- - main
7
+ # - main
8
8
- next
9
9
10
10
concurrency : ${{ github.workflow }}-${{ github.ref }}
@@ -18,14 +18,27 @@ jobs:
18
18
- uses : actions/checkout@v4
19
19
- uses : ./.github/actions/gh-setup
20
20
- name : Create Release Pull Request or Publish to npm
21
+ id : changesets
21
22
# https://github.com/changesets/action
22
23
uses : changesets/action@v1
23
24
with :
24
25
# this expects you to have a script called release which does a build for your packages and calls changeset publish
25
26
publish : yarn publish
26
27
version : yarn version-packages
27
- commit : ' chore: new ${{ github.base_ref }} release'
28
- title : ' chore: new ${{ github.base_ref }} release'
28
+ commit : ' chore: new release'
29
+ title : ' chore: new release'
29
30
env :
30
31
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
32
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
33
+ - name : Merge next into main if we publised outside of prerelease
34
+ uses :
robotology/[email protected]
35
+ # If not pre.json is present and we published, we asume a new version to latest has been published
36
+ # Update main with latest changes
37
+ if : ${{ hashFiles('.changeset/pre.json') == '' && steps.changesets.outputs.published == 'true' }}
38
+ with :
39
+ stable_branch : ' main'
40
+ development_branch : ' next'
41
+ allow_ff : true
42
+ user_name : github_actions
43
+ env :
44
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @digdir/designsystemet" ,
3
- "version" : " 1.0.0 -next.51" ,
3
+ "version" : " 0.100.51 -next.51" ,
4
4
"description" : " CLI for Designsystemet" ,
5
5
"author" : " Designsystemet team" ,
6
6
"engines" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @digdir/designsystemet-css" ,
3
- "version" : " 1.0.0 -next.51" ,
3
+ "version" : " 0.100.51 -next.51" ,
4
4
"description" : " CSS for Designsystemet" ,
5
5
"author" : " Designsystemet team" ,
6
6
"repository" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @digdir/designsystemet-react" ,
3
3
"type" : " module" ,
4
- "version" : " 1.0.0 -next.51" ,
4
+ "version" : " 0.100.51 -next.51" ,
5
5
"description" : " React components for Designsystemet" ,
6
6
"author" : " Designsystemet team" ,
7
7
"repository" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @digdir/designsystemet-theme" ,
3
- "version" : " 1.0.0 -next.51" ,
3
+ "version" : " 0.100.51 -next.51" ,
4
4
"description" : " Predefined themes for Designsystemet" ,
5
5
"author" : " Designsystemet team" ,
6
6
"repository" : {
You can’t perform that action at this time.
0 commit comments