Skip to content

Commit

Permalink
👷 Add Semantic Release [skip ci] [release]
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary authored May 30, 2020
1 parent 564139b commit b176891
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Semantic Release
on:
push:
branches:
- master
jobs:
release:
name: Build, test, and release
runs-on: ubuntu-18.04
# if: "!contains(github.event.head_commit.message, '[skip ci]')"
if: "contains(github.event.head_commit.message, '[release]')"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Deno
uses: denolib/setup-deno@master
with:
deno-version: 1.x
- name: Tests
run: deno test --allow-read
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12.17.0
- name: Setup package.json
run: echo '{"name":"@denorg/starter","version":"0.0.0","publishConfig":{"access":"public"},"scripts":{"semantic-release":"semantic-release"},"repository":{"type":"git","url":"https://github.com/denorg/starter.git"},"author":"Denorg<[email protected]>","license":"MIT","bugs":{"url":"https://github.com/denorg/starter/issues"},"homepage":"https://denorg.github.io/starter/","devDependencies":{"semantic-release":"^17.0.4","semantic-release-gitmoji":"^1.3.3"}}' > package.json
- name: Install dependencies
run: npm install
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit b176891

Please sign in to comment.