diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..9ff3e7b --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,34 @@ +name: Release + +on: + push: + branches: + - master + +jobs: + release: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.13.0] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Run npm ci + run: npm ci + + - name: Release + run: npm run semantic-release + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} +