Skip to content

Commit

Permalink
ci(release): release using github action
Browse files Browse the repository at this point in the history
see #262
  • Loading branch information
trieloff committed Dec 14, 2020
1 parent a89d3d2 commit 36d42ad
Show file tree
Hide file tree
Showing 3 changed files with 1,162 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,3 @@ workflows:
build_test_deploy:
jobs:
- build
- publish:
requires:
- build
filters:
branches:
only: master
55 changes: 55 additions & 0 deletions .github/workflows/semantic-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Semantic Release
on:
push:
branches:
- 'main'

jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: '10.x'
- run: npm install
- run: git config --global user.email "test@project-helix.io" && git config --global user.name "Test Build"
- run: npm test
env:
CIRCLE_REPOSITORY_URL: dummy-url

build_win:
runs-on: windows-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: '10.x'
- run: npm install
- run: git config --global user.email "test@project-helix.io" && git config --global user.name "Test Build"
- run: npm test
env:
CIRCLE_REPOSITORY_URL: dummy-url

release:
runs-on: ubuntu-latest
needs: [build, build_win]
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: '10.x'
- run: npm install
- run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
Loading

0 comments on commit 36d42ad

Please sign in to comment.