Allow adding labels to ipl-small-toggle through its default slot #106
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: | |
push: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repository | |
uses: actions/checkout@v4 | |
- name: Enable Corepack before setting up Node | |
run: corepack enable | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.node-version' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- name: Run linter | |
run: yarn lint | |
- name: Run tests | |
run: yarn test:ci | |
- name: Create test report | |
if: ${{ always() }} | |
uses: tanmen/jest-reporter@v1 | |
with: | |
github-token: ${{ secrets['GITHUB_TOKEN'] }} | |
result-file: ./result.json | |
publish: | |
if: github.ref == 'refs/heads/master' | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repository | |
uses: actions/checkout@v4 | |
- name: Enable Corepack before setting up Node | |
run: corepack enable | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.node-version' | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- run: yarn build | |
- run: yarn npm publish | |
env: | |
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |