ci: update semantic-release config

This commit is contained in:
Christopher Willis-Ford 2023-12-20 18:50:26 -08:00
parent eb04eb5aa4
commit 84e8bd0da7
4 changed files with 6323 additions and 8288 deletions

View file

@ -2,9 +2,7 @@ name: CI/CD
on:
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
pull_request: # Runs whenever a pull request is created or updated
push: # Runs whenever a commit is pushed to the repository
branches: [master, develop, hotfix/*, release]
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
@ -24,7 +22,7 @@ jobs:
- uses: wagoid/commitlint-github-action@v5
if: github.event_name == 'pull_request'
- uses: actions/setup-node@v3
with:
cache: "npm"
@ -50,4 +48,4 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx --no -- semantic-release
npx --no -- semantic-release

14579
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,12 +1,12 @@
{
"name": "scratch-storage",
"version": "0.0.0-development",
"version": "0.0.0",
"description": "Load and store project and asset files for Scratch 3.0",
"license": "BSD-3-Clause",
"homepage": "https://github.com/LLK/scratch-storage#readme",
"homepage": "https://github.com/scratchfoundation/scratch-storage#readme",
"repository": {
"type": "git",
"url": "https://github.com/LLK/scratch-storage.git"
"url": "https://github.com/scratchfoundation/scratch-storage.git"
},
"main": "./dist/node/scratch-storage.js",
"browser": "./dist/web/scratch-storage.js",
@ -56,7 +56,8 @@
"husky": "8.0.3",
"jest": "29.5.0",
"json": "^9.0.4",
"semantic-release": "^15.10.5",
"scratch-semantic-release-config": "1.0.8",
"semantic-release": "19.0.5",
"uglifyjs-webpack-plugin": "2.2.0",
"webpack": "4.46.0",
"webpack-cli": "3.1.2"
@ -65,8 +66,5 @@
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"release": {
"branch": "develop"
}
}

14
release.config.js Normal file
View file

@ -0,0 +1,14 @@
module.exports = {
extends: 'scratch-semantic-release-config',
branches: [
{
name: 'develop'
// default channel
},
{
name: 'hotfix/*',
channel: 'hotfix',
prerelease: 'hotfix'
}
]
};