Skip to content

Commit cebe84d

Browse files
committed
feat: add plugins module
1 parent 6cd625d commit cebe84d

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

.github/workflows/automated.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
- name: Setup Node.js
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
29-
node-version: 14
29+
node-version: 22 # Required for the latest semantic-release plugins
3030
- name: Semantic Release
31-
uses: cycjimmy/semantic-release-action@v3
31+
uses: cycjimmy/semantic-release-action@v4 # Update to v4 for better Node 20+ support
3232
id: semantic
3333
with:
3434
extra_plugins: |
3535
@semantic-release/changelog
3636
@semantic-release/git
3737
@semantic-release/github
3838
env:
39-
GITHUB_TOKEN: "${{ secrets.GITHUB }}"
39+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" # Use the built-in token if possible
4040
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
4141
outputs:
4242
new_release_published: "${{ steps.semantic.outputs.new_release_published }}"

CoCreate.config.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ module.exports = {
123123
pwa: {
124124
import: "@cocreate/pwa"
125125
},
126+
organizations: {
127+
import: "@cocreate/organizations"
128+
},
126129
cssParser: {
127130
import: "@cocreate/css-parser",
128131
selector: "link[array][object][key], link[parse]"
@@ -152,6 +155,10 @@ module.exports = {
152155
import: "@cocreate/api",
153156
selector: "[actions], [template_id]"
154157
},
158+
plugins: {
159+
import: "@cocreate/plugins",
160+
selector: "[plugin]"
161+
},
155162
aria: {
156163
import: "@cocreate/aria",
157164
selector: "[aria-controls], [aria-selected]"
@@ -198,10 +205,6 @@ module.exports = {
198205
import: "@cocreate/unique",
199206
selector: "[unique]"
200207
},
201-
organizations: {
202-
import: "@cocreate/organizations",
203-
selector: "[organization], [actions*='createOrganization']"
204-
},
205208
industry: {
206209
import: "@cocreate/industry",
207210
selector:
@@ -357,6 +360,10 @@ module.exports = {
357360
path: "../CoCreate-modules/CoCreate-api",
358361
repo: "github.com/CoCreate-app/CoCreate-api.git"
359362
},
363+
{
364+
path: "../CoCreate-modules/CoCreate-plugins",
365+
repo: "github.com/CoCreate-app/CoCreate-plugins.git"
366+
},
360367
{
361368
path: "../CoCreate-modules/CoCreate-aria",
362369
repo: "github.com/CoCreate-app/CoCreate-aria.git"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
"@cocreate/organizations": "^1.28.3",
102102
"@cocreate/parallax": "^1.10.1",
103103
"@cocreate/pickr": "^1.13.2",
104+
"@cocreate/plugins": "^1.0.2",
104105
"@cocreate/position": "^1.10.2",
105106
"@cocreate/print": "^1.0.2",
106107
"@cocreate/prism": "^1.15.2",

0 commit comments

Comments
 (0)