-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
103 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: CD | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
paths-ignore: | ||
- 'package.json' | ||
- 'package-lock.json' | ||
- 'CHANGELOG.md' | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 8.15.5 | ||
- name: Reconfigure git to use HTTP authentication | ||
run: > | ||
git config --global url."https://github.com/".insteadOf | ||
ssh://[email protected]/ | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install Dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: Build, bump and release the extension to GitHub Releases | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }} | ||
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} | ||
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }} | ||
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} | ||
run: pnpm release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"branches": [ | ||
"master", | ||
{ | ||
"name": "develop", | ||
"prerelease": "alpha" | ||
} | ||
], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"assets": [ | ||
"package.json" | ||
] | ||
} | ||
], | ||
[ | ||
"@semantic-release/exec", | ||
{ | ||
"publishCmd": "pnpm run build:extension && cd build && zip -r mutable-web-extension.zip *" | ||
} | ||
], | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
"assets": [ | ||
{ | ||
"path": "build/mutable-web-extension.zip", | ||
"label": "Browser Extension (zip)" | ||
} | ||
] | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,8 @@ | |
"prettify": "prettier --write src", | ||
"eslint": "eslint ./src --ext .ts --fix", | ||
"stylelint": "stylelint ./src/**/*.{css,scss,module.scss} --fix", | ||
"test": "playwright test" | ||
"test": "playwright test", | ||
"release": "semantic-release" | ||
}, | ||
"devDependencies": { | ||
"@playwright/test": "^1.42.1", | ||
|
@@ -87,66 +88,18 @@ | |
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dapplets/mutable-web-extension.git" | ||
"url": "git+https://github.com/dapplets/mutable-web-monorepo.git" | ||
}, | ||
"author": "Dapplets Team <[email protected]>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/dapplets/mutable-web-extension/issues" | ||
"url": "https://github.com/dapplets/mutable-web-monorepo/issues" | ||
}, | ||
"homepage": "https://github.com/dapplets/mutable-web-extension#readme", | ||
"homepage": "https://github.com/dapplets/mutable-web-monorepo#readme", | ||
"files": [ | ||
"lib/**/*" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"release": { | ||
"branches": [ | ||
"master", | ||
{ | ||
"name": "testing", | ||
"prerelease": "beta" | ||
}, | ||
{ | ||
"name": "develop", | ||
"prerelease": "alpha" | ||
} | ||
], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/npm", | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
"assets": [ | ||
"package.json", | ||
"package-lock.json" | ||
] | ||
} | ||
], | ||
[ | ||
"@semantic-release/exec", | ||
{ | ||
"publishCmd": "npm run build:extension && cd build && zip -r dapplet-extension.zip *" | ||
} | ||
], | ||
[ | ||
"@semantic-release/github", | ||
{ | ||
"assets": [ | ||
{ | ||
"path": "build/dapplet-extension.zip", | ||
"label": "Browser Extension (zip)" | ||
}, | ||
{ | ||
"path": "lib/index.min.js", | ||
"label": "Pure JSLib for browser (js)" | ||
} | ||
] | ||
} | ||
] | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,9 @@ | |
"dev": { | ||
"persistent": true, | ||
"cache": false | ||
}, | ||
"release": { | ||
"cache": false | ||
} | ||
} | ||
} |