@jakubmazanec/carson-templates 2.0.0-next.75b0d46 → 2.0.0-next.9befaf5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jakubmazanec/carson-templates",
3
- "version": "2.0.0-next.75b0d46",
3
+ "version": "2.0.0-next.9befaf5",
4
4
  "description": "Collection of Carson templates.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,7 +34,7 @@
34
34
  "semver": "^7.3.6"
35
35
  },
36
36
  "devDependencies": {
37
- "@jakubmazanec/carson": "0.3.0-next.75b0d46",
37
+ "@jakubmazanec/carson": "0.3.0-next.9befaf5",
38
38
  "@jakubmazanec/fs-utils": "^0.1.0",
39
39
  "@jest/globals": "^29.5.0",
40
40
  "@types/fs-extra": "^9.0.13",
@@ -45,7 +45,7 @@
45
45
  "zen-observable": "^0.10.0"
46
46
  },
47
47
  "peerDependencies": {
48
- "@jakubmazanec/carson": "0.3.0-next.75b0d46"
48
+ "@jakubmazanec/carson": "0.3.0-next.9befaf5"
49
49
  },
50
50
  "packageManager": "npm@8.19.4",
51
51
  "engines": {
@@ -12,12 +12,13 @@ on:
12
12
  jobs:
13
13
  check_pull_request:
14
14
  name: Check pull request
15
+ if: ${{ github.actor != 'renovate[bot]' }}
15
16
  runs-on: ubuntu-latest
16
17
  timeout-minutes: 15
17
18
  steps:
18
19
  - uses: actions/checkout@v3
19
20
  with:
20
- token: ${{secrets.GITHUB_TOKEN}}
21
+ token: ${{secrets.PAT}}
21
22
  fetch-depth: 0
22
23
 
23
24
  - name: Configure git
@@ -33,7 +34,6 @@ jobs:
33
34
  run: npm ci
34
35
 
35
36
  - name: Check for changes
36
- if: "github.actor != 'renovate[bot]'"
37
37
  run: |
38
38
  git config core.filemode false
39
39
  git_status=$(git status --porcelain)
@@ -51,7 +51,6 @@ jobs:
51
51
  run: npm test
52
52
 
53
53
  - name: Check for changes
54
- if: "github.actor != 'renovate[bot]'"
55
54
  run: |
56
55
  git config core.filemode false
57
56
  git_status=$(git status --porcelain)
@@ -9,9 +9,9 @@ on: [push, workflow_dispatch]
9
9
  jobs:
10
10
  release_main_branch:
11
11
  name: Main branch release
12
+ if: ${{ github.ref_name == '<%- getMainBranch(workspace) %>' }}
12
13
  runs-on: ubuntu-latest
13
14
  timeout-minutes: 15
14
- if: "github.ref_name == '<%- getMainBranch(workspace) %>'"
15
15
  steps:
16
16
  - name: Cancel previous runs
17
17
  uses: styfle/cancel-workflow-action@0.11.0
@@ -133,9 +133,9 @@ jobs:
133
133
 
134
134
  release_development_branch:
135
135
  name: Development branch release
136
+ if: ${{ github.ref_name == '<%- getDevelopmentBranch(workspace) %>' }}
136
137
  runs-on: ubuntu-latest
137
138
  timeout-minutes: 15
138
- if: "github.ref_name == '<%- getDevelopmentBranch(workspace) %>'"
139
139
  steps:
140
140
  - name: Cancel previous runs
141
141
  uses: styfle/cancel-workflow-action@0.11.0
@@ -228,7 +228,7 @@ jobs:
228
228
  name: Feature branch release
229
229
  runs-on: ubuntu-latest
230
230
  timeout-minutes: 15
231
- if: "github.ref_name != '<%- getMainBranch(workspace) %>' && github.ref_name != '<%- getDevelopmentBranch(workspace) %>' && github.actor != 'renovate[bot]'"
231
+ if: ${{ github.ref_name != '<%- getMainBranch(workspace) %>' && github.ref_name != '<%- getDevelopmentBranch(workspace) %>' && github.actor != 'renovate[bot]' }}
232
232
  steps:
233
233
  - name: Cancel previous runs
234
234
  uses: styfle/cancel-workflow-action@0.11.0
@@ -6,20 +6,19 @@ name: Update pull request
6
6
 
7
7
  on:
8
8
  pull_request_target:
9
- branches:
10
- - development
9
+ branches: [development]
11
10
 
12
11
  jobs:
13
12
  update_pull_request:
14
13
  name: Update pull request
15
- if: github.actor == 'renovate[bot]'
14
+ if: ${{ github.actor == 'renovate[bot]' && contains(github.head_ref, 'renovate/') }}
16
15
  runs-on: ubuntu-latest
17
16
  timeout-minutes: 15
18
17
  steps:
19
18
  - uses: actions/checkout@v3
20
19
  with:
21
20
  ref: ${{ github.head_ref }}
22
- token: ${{secrets.GITHUB_TOKEN}}
21
+ token: ${{secrets.PAT}}
23
22
  fetch-depth: 0
24
23
 
25
24
  - name: Configure git
@@ -36,7 +35,6 @@ jobs:
36
35
 
37
36
  - name: Generate changeset
38
37
  uses: actions/github-script@v6
39
- if: ${{ github.actor == 'renovate[bot]' }}
40
38
  with:
41
39
  script: |
42
40
  let { promises: fs } = require('fs');
@@ -60,9 +58,11 @@ jobs:
60
58
 
61
59
  for (let [packageName, bump] of packageBumps) {
62
60
  message =
63
- message + `Dependency \`${packageName}\` updated to \`${bump}\`.\n`;
61
+ message + `Dependency \`${packageName}\` updated to version \`${bump}\`.\n`;
64
62
  }
65
63
 
64
+ message = message.replace('\n', ' ');
65
+
66
66
  let header = packages
67
67
  .map((packageName) => `'${packageName}': patch`)
68
68
  .join('\n');
@@ -108,9 +108,6 @@ jobs:
108
108
  console.log('No package.json changes to published packages, skipping...');
109
109
 
110
110
  await exec.exec('npx', ['changeset', '--empty']);
111
- await exec.exec('git', ['add', '.', '--all']);
112
- await exec.exec('git commit -m"Add changeset [skip actions]"');
113
- await exec.exec('git push --force');
114
111
 
115
112
  return;
116
113
  }
@@ -122,14 +119,13 @@ jobs:
122
119
  let packageBumps = await getBumps(files);
123
120
 
124
121
  await createChangeset(fileName, packageBumps, packageNames);
125
- await exec.exec('git', ['add', '.', '--all']);
126
- await exec.exec('git commit -m"Add changeset [skip actions]"');
127
- await exec.exec('git push --force');
128
122
 
129
123
  - name: Update Carson
130
- if: ${{ github.actor == 'renovate[bot]' }}
131
124
  run: |
132
125
  npm install
126
+
127
+ - name: Commit and push changes
128
+ run: |
133
129
  git add . --all
134
- git commit -m"Run Carson update [skip actions]"
130
+ git commit -m"Update"
135
131
  git push --force