-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: Add github workflow * chore: Add semantic-release to github actions * chore: Change workflow name * chore: Add semantic-release dry-run option * chore: CHange push policy * chore: Change policy * chore: Add permistion to node_modules dir * chore: Remove upload node_modules * chore: Add @semantic-release plugins * chore: Add conventional-commit dep * chore: Add release.config.js * chore: Add restore cache * chore: Update release branch
- Loading branch information
1 parent
bb7542e
commit 8fa2f1a
Showing
4 changed files
with
2,967 additions
and
69 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,57 @@ | ||
name: release | ||
|
||
on: [push] | ||
|
||
jobs: | ||
install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: react-editor-js-${{ hashFiles('**/yarn.lock') }} | ||
- run: npm install -g yarn | ||
- run: yarn | ||
- run: chmod -R +x ./node_modules/.bin | ||
|
||
build: | ||
needs: install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: react-editor-js-${{ hashFiles('**/yarn.lock') }} | ||
- run: yarn build | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
publish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: react-editor-js-${{ hashFiles('**/yarn.lock') }} | ||
- uses: actions/download-artifact@v1 | ||
with: | ||
name: dist | ||
- run: npx semantic-release --extends | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_ACCESS_TOKEN}} | ||
NPM_TOKEN: ${{secrets.NPM_ACCESS_TOKEN}} |
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
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,20 @@ | ||
module.exports = { | ||
branches: ['master'], | ||
tagFormat: '${version}', | ||
plugins: [ | ||
[ | ||
'@semantic-release/commit-analyzer', | ||
{ | ||
preset: 'conventionalcommits' | ||
} | ||
], | ||
[ | ||
'@semantic-release/release-notes-generator', | ||
{ | ||
preset: 'conventionalcommits' | ||
} | ||
], | ||
'@semantic-release/npm', | ||
'@semantic-release/github' | ||
] | ||
} |
Oops, something went wrong.