Skip to content

Commit

Permalink
ci: semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenOutman committed May 31, 2021
1 parent 3b51be4 commit 6e9bc40
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
node-version: '14'
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npm test
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release
on:
push:
branches:
- master
- 'ci/**'

jobs:
release:
name: release
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm ci
- name: Semantic Release
run: npx semantic-release
if: ${{ github.ref == 'refs/heads/master' }}
- name: Semantic Release (Dry run)
run: npx semantic-release --dry-run
if: ${{ startsWith(github.ref, 'refs/heads/ci') }}
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rsuite/interactions",
"version": "1.4.0",
"version": "0.0.0-development",
"description": "Call rsuite Modal at ease.",
"main": "lib",
"types": "index.d.ts",
Expand All @@ -12,11 +12,12 @@
"test": "npm run test:4 && npm run test:5",
"test:4": "RSUITE=4 jest",
"test:5": "RSUITE=5 jest",
"prepublishOnly": "npm run build && npm test"
"prepublishOnly": "npm run build && npm test",
"semantic-release": "semantic-release"
},
"repository": {
"type": "git",
"url": "git+https://github.com/rsuite/interactions.git"
"url": "https://github.com/rsuite/interactions.git"
},
"files": [
"lib",
Expand Down Expand Up @@ -104,7 +105,8 @@
"url-loader": "^2.2.0",
"webpack": "^4.44.2",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0"
"webpack-dev-server": "^3.11.0",
"semantic-release": "^17.4.3"
},
"browserslist": [
"> 1%",
Expand Down

0 comments on commit 6e9bc40

Please sign in to comment.