mirror of
https://github.com/scratchfoundation/scratch-storage.git
synced 2025-05-16 16:11:13 -04:00
ci: update semantic-release config
This commit is contained in:
parent
eb04eb5aa4
commit
84e8bd0da7
4 changed files with 6323 additions and 8288 deletions
6
.github/workflows/ci-cd.yml
vendored
6
.github/workflows/ci-cd.yml
vendored
|
@ -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
14579
package-lock.json
generated
File diff suppressed because it is too large
Load diff
12
package.json
12
package.json
|
@ -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
14
release.config.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
module.exports = {
|
||||
extends: 'scratch-semantic-release-config',
|
||||
branches: [
|
||||
{
|
||||
name: 'develop'
|
||||
// default channel
|
||||
},
|
||||
{
|
||||
name: 'hotfix/*',
|
||||
channel: 'hotfix',
|
||||
prerelease: 'hotfix'
|
||||
}
|
||||
]
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue