Skip to content

Commit 387b5c3

Browse files
committed
Chore: Use shared semantic-release config
1 parent 162fd53 commit 387b5c3

2 files changed

Lines changed: 11 additions & 52 deletions

File tree

.github/workflows/releases.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,16 @@
11
name: Release
2+
23
on:
34
push:
45
branches:
56
- master
67

8+
permissions:
9+
contents: write
10+
issues: write
11+
pull-requests: write
12+
id-token: write
13+
714
jobs:
815
release:
9-
name: Release
10-
runs-on: ubuntu-latest
11-
permissions:
12-
contents: write # to be able to publish a GitHub release
13-
issues: write # to be able to comment on released issues
14-
pull-requests: write # to be able to comment on released pull requests
15-
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
16-
steps:
17-
- name: Checkout
18-
uses: actions/checkout@master
19-
with:
20-
fetch-depth: 0
21-
- name: Setup Node.js
22-
uses: actions/setup-node@master
23-
with:
24-
node-version: 'lts/*'
25-
- name: Update npm
26-
run: npm install -g npm@latest
27-
- name: Install dependencies
28-
run: npm install
29-
- name: Release
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
run: npx semantic-release
16+
uses: adaptlearning/semantic-release-config/.github/workflows/release.yml@master

package.json

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
"adapt-authoring-content": "^2.0.0",
1515
"adapt-authoring-contentplugin": "^1.0.3",
1616
"adapt-authoring-core": "^2.0.0",
17-
"adapt-authoring-courseassets": "^1.0.3",
1817
"adapt-authoring-coursetheme": "^1.0.2",
1918
"adapt-authoring-mongodb": "^3.0.0",
2019
"adapt-authoring-spoortracking": "^1.0.2",
2120
"adapt-cli": "^3.3.3",
21+
"adapt-migrations": "^1.4.0",
2222
"adapt-octopus": "^0.1.2",
2323
"bytes": "^3.1.2",
2424
"fs-extra": "11.3.3",
@@ -37,35 +37,10 @@
3737
"adapt-authoring-tags": "^1.0.1"
3838
},
3939
"devDependencies": {
40-
"@semantic-release/git": "^10.0.1",
41-
"conventional-changelog-eslint": "^6.0.0",
42-
"semantic-release": "^25.0.2",
40+
"@adaptlearning/semantic-release-config": "^1.0.0",
4341
"standard": "^17.1.0"
4442
},
4543
"release": {
46-
"plugins": [
47-
[
48-
"@semantic-release/commit-analyzer",
49-
{
50-
"preset": "eslint"
51-
}
52-
],
53-
[
54-
"@semantic-release/release-notes-generator",
55-
{
56-
"preset": "eslint"
57-
}
58-
],
59-
"@semantic-release/npm",
60-
"@semantic-release/github",
61-
[
62-
"@semantic-release/git",
63-
{
64-
"assets": [
65-
"package.json"
66-
]
67-
}
68-
]
69-
]
44+
"extends": "@adaptlearning/semantic-release-config"
7045
}
7146
}

0 commit comments

Comments
 (0)