Skip to content

Commit

Permalink
ci: add release task (#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Feb 20, 2022
1 parent ac27ba2 commit 4f69668
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
workflow_dispatch:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm install --no-package-lock
name: Install dev dependencies
- run: npm test
name: Run NPM Test
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Release
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@
"android-apidemos": "^4.0.0",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-promise": "^6.0.0",
"gulp": "^4.0.0",
"mocha": "^9.0.0",
"mock-fs": "^5.0.0",
Expand Down

0 comments on commit 4f69668

Please sign in to comment.