Skip to content

Commit

Permalink
feat: automatic deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
eransakal committed May 10, 2021
1 parent 1320f0e commit 9e56353
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
- master
- beta
- next
jobs:
release:
name: Release
Expand All @@ -15,6 +15,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: prepare default version
run: npm run prepare:default
- name: Release to Github
Expand Down Expand Up @@ -47,14 +48,14 @@ jobs:
if: steps.semantic.outputs.new_release_published == 'true'
run: |
node utils/pre-publish.js --version ${{ steps.semantic.outputs.new_release_version }}
npm publish --access public
- run: npm publish --access public --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Release core to NPM
if: steps.semantic.outputs.new_release_published == 'true'
run: |
npm run prepare:core
node utils/pre-publish.js --version ${{ steps.semantic.outputs.new_release_version }}
npm publish --access public
- run: npm publish --access public --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 9e56353

Please sign in to comment.