Style prop in Modal component #17
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: CI | |
on: | |
pull_request: | |
branches: [main, develop] | |
push: | |
branches: [main, develop] | |
jobs: | |
lint-and-test: | |
env: | |
CI: true | |
runs-on: ubuntu-latest | |
steps: | |
- name: π¦ Checkout Github Repository | |
uses: actions/checkout@v4 | |
- name: π Read .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
id: nvm | |
- name: π οΈ Setup Node.js and NPM | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
- name: π Cache or restore deps | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-modules- | |
- name: π₯ Download dependencies | |
run: npm install | |
- name: βοΈ Run Lint Script | |
run: npm run lint | |
- name: π§ͺ Run Tests | |
run: npm run test:ci | |
- name: π€ Upload code coverage to artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-coverage-report | |
path: coverage | |
build-and-publish: | |
needs: lint-and-test | |
env: | |
CI: true | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
steps: | |
- name: π Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.9.1 | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: π¦ Checkout Github Repository | |
uses: actions/checkout@v4 | |
- name: π Read .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
id: nvm | |
- name: π οΈ Setup Node.js and NPM | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
- name: π Cache or restore deps | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-modules- | |
- name: π₯ Download dependencies | |
run: npm install | |
- name: βοΈ Build Components | |
run: npm run compile | |
- name: π€ Upload build files to artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: library-build | |
path: lib | |
- name: π Semantic Release on NPM & Github | |
uses: cycjimmy/semantic-release-action@v4 | |
with: | |
branch: main | |
extra_plugins: | | |
conventional-changelog-conventionalcommits | |
@semantic-release/commit-analyzer | |
@semantic-release/release-notes-generator | |
@semantic-release/npm | |
@semantic-release/git | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |