Skip to content

Commit

Permalink
feat(auto publish release): release-management runs npx run semantic …
Browse files Browse the repository at this point in the history
…on release

Release-management build file now exists that runs new versions of the release

re open-sauced#668
  • Loading branch information
CodeItQuick committed Oct 10, 2020
1 parent 602154e commit 42b50a6
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,32 @@ jobs:
- uses: toolmantim/release-drafter@v5.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install and test
run: |
npm install
npm test
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{secrets.GH_TOKEN}}
run: npx semantic-release

0 comments on commit 42b50a6

Please sign in to comment.