Skip to content

Commit 9159c0d

Browse files
committed
chore: cleanup standard-version and update the scripts to semantic-release
1 parent baab1fc commit 9159c0d

File tree

4 files changed

+7944
-4962
lines changed

4 files changed

+7944
-4962
lines changed

.github/workflows/automated-release.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
name: Continuous integration (release)
1+
name: Automated release
22
on:
33
push:
44
branches:
55
- main
6+
67
jobs:
78
automated-releases:
89
runs-on: ubuntu-latest
@@ -15,21 +16,11 @@ jobs:
1516
token: ${{ secrets.NPM_TOKEN }}
1617
cache-dependency-path: 'package-lock.json'
1718
- run: npm ci
18-
- run: npm run release:lint
19-
- run: npm run release:check
20-
- run: npm run release:test
21-
- run: npm run release:build
22-
- name: Run semantic-release
19+
- run: npm run release
2320
env:
2421
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2522
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26-
run: >
27-
npx
28-
-p "@semantic-release/commit-analyzer"
29-
-p "@semantic-release/release-notes-generator"
30-
-p conventional-changelog-conventionalcommits
31-
-p semantic-release
32-
-- semantic-release
23+
3324
permissions:
3425
# packages: write # This is for pushing it to githubs package repository
3526
contents: write

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,10 +1188,12 @@ npm run lint # Run linter
11881188
npm run format # Automatically fix linting issues
11891189

11901190
npm run release-dry-run # To run the build and see the change list without actually publishing
1191-
npm run release # Publish to npm (requires login). This will test, check, lint, build,
1192-
# increase the version number, update the changelog, and publish to npm.
1193-
# Note that it will publish two npm packages: `svelte-jsoneditor`
1194-
# and `vanilla-jsoneditor`.
1191+
npm run release # Publish the npm packages `svelte-jsoneditor` and `vanilla-jsoneditor`.
1192+
# This will test, check, lint, build, create a version tag and publish
1193+
# to npm and GitHub releases. This script runs automatically via the GitHub
1194+
# Actions workflow "Automated release" after a push to the `main` branch.
1195+
# note that the script requires environment variables NPM_TOKEN and
1196+
# GITHUB_TOKEN.
11951197
```
11961198
11971199
## License

0 commit comments

Comments
 (0)