Skip to content

Merge pull request #35 from Atom-Learning/feat/b2b-734-font-size-icon #94

Merge pull request #35 from Atom-Learning/feat/b2b-734-font-size-icon

Merge pull request #35 from Atom-Learning/feat/b2b-734-font-size-icon #94

Workflow file for this run

name: Test & publish
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: '14'
- run: yarn install
- name: Test
run: yarn test
publish:
name: publish
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: '14'
- run: yarn install
- name: Semantic Release
uses: cycjimmy/[email protected]
id: semantic # Need an `id` to refer back to this step from the next one
with:
branch: 'main'
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
- name: Log new version
if: steps.semantic.outputs.new_release_published == 'true'
run: echo ${{ steps.semantic.outputs.new_release_version }}