feat: multiple accounts on beinleumi base (#842) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- master | |
- next | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org/ | |
- name: prepare default version | |
run: npm run prepare:default | |
- name: Release to Github | |
uses: cycjimmy/semantic-release-action@v2 | |
id: semantic # Need an `id` for output variables | |
with: | |
semantic_version: 16.0.2 | |
branches: | | |
[ | |
'+([0-9])?(.{+([0-9]),x}).x', | |
'master', | |
'next', | |
'next-major', | |
{ | |
name: 'hotfix', | |
prerelease: true | |
}, | |
{ | |
name: 'beta', | |
prerelease: true | |
}, | |
{ | |
name: 'alpha', | |
prerelease: true | |
} | |
] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Prepare release of default to NPM | |
if: steps.semantic.outputs.new_release_published == 'true' | |
run: | | |
node utils/pre-publish.js --version ${{ steps.semantic.outputs.new_release_version }} | |
- name: Publish to NPM | |
if: steps.semantic.outputs.new_release_published == 'true' | |
run: npm publish --access public --ignore-scripts | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
- name: Prepare release of 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 }} | |
- name: Publish to NPM | |
if: steps.semantic.outputs.new_release_published == 'true' | |
run: npm publish --access public --ignore-scripts | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |