adapt-migrations 1.4.0 → 1.4.1
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/.github/dependabot.yml +11 -0
- package/.github/workflows/releases.yml +8 -3
- package/api/helpers.js +1 -1
- package/package.json +6 -8
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
- package-ecosystem: "npm" # See documentation for possible values
|
|
9
|
+
directory: "/" # Location of package manifests
|
|
10
|
+
schedule:
|
|
11
|
+
interval: "weekly"
|
|
@@ -7,19 +7,24 @@ jobs:
|
|
|
7
7
|
release:
|
|
8
8
|
name: Release
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
contents: write # to be able to publish a GitHub release
|
|
12
|
+
issues: write # to be able to comment on released issues
|
|
13
|
+
pull-requests: write # to be able to comment on released pull requests
|
|
14
|
+
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
|
|
10
15
|
steps:
|
|
11
16
|
- name: Checkout
|
|
12
|
-
uses: actions/checkout@
|
|
17
|
+
uses: actions/checkout@v4
|
|
13
18
|
with:
|
|
14
19
|
fetch-depth: 0
|
|
15
20
|
- name: Setup Node.js
|
|
16
|
-
uses: actions/setup-node@
|
|
21
|
+
uses: actions/setup-node@v4
|
|
17
22
|
with:
|
|
18
23
|
node-version: 'lts/*'
|
|
24
|
+
registry-url: https://registry.npmjs.org
|
|
19
25
|
- name: Install dependencies
|
|
20
26
|
run: npm ci
|
|
21
27
|
- name: Release
|
|
22
28
|
env:
|
|
23
29
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
24
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
25
30
|
run: npx semantic-release
|
package/api/helpers.js
CHANGED
|
@@ -5,7 +5,7 @@ function getContent() {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export function getConfig () {
|
|
8
|
-
return getContent().find(({ _type, __path__ }) => _type === 'config' || __path__
|
|
8
|
+
return getContent().find(({ _type, __path__ }) => _type === 'config' || __path__?.endsWith('config.json'))
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export function getCourse() {
|
package/package.json
CHANGED
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
"name": "adapt-migrations",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"main": "index.js",
|
|
5
|
-
"version": "1.4.
|
|
6
|
-
"
|
|
5
|
+
"version": "1.4.1",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/adaptlearning/adapt-migrations.git"
|
|
9
|
+
},
|
|
7
10
|
"dependencies": {
|
|
8
11
|
"fs-extra": "^11.1.1",
|
|
9
12
|
"globs": "^0.1.4",
|
|
@@ -16,13 +19,8 @@
|
|
|
16
19
|
"eslint-plugin-import": "^2.27.5",
|
|
17
20
|
"eslint-plugin-node": "^11.1.0",
|
|
18
21
|
"eslint-plugin-promise": "^6.1.1",
|
|
19
|
-
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
20
22
|
"@semantic-release/git": "^10.0.1",
|
|
21
|
-
"
|
|
22
|
-
"@semantic-release/npm": "^9.0.1",
|
|
23
|
-
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
24
|
-
"conventional-changelog-eslint": "^3.0.9",
|
|
25
|
-
"semantic-release": "^21.0.1"
|
|
23
|
+
"semantic-release": "^25.0.2"
|
|
26
24
|
},
|
|
27
25
|
"release": {
|
|
28
26
|
"plugins": [
|