chore: refactor iconbutton focus ring #1647
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: MDC Release (Canary) | |
# This workflow creates a pre-release and publishes packages to NPM with canary | |
# tag on every commit to master. | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "packages/**/*.ts" | |
- "packages/**/*.scss" | |
- "**/package*.json" | |
- "**/.npmignore" | |
jobs: | |
release-canary: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
fetch-depth: 0 | |
- name: Fetch all tags | |
run: | | |
git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
registry-url: https://registry.npmjs.org/ | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: | | |
npm ci --ignore-scripts | |
npm run bootstrap | |
- name: Build packages | |
run: | | |
npm run dist | |
node scripts/cp-pkgs.js | |
node scripts/verify-pkg-main.js | |
- name: Create canary release | |
run: | | |
npx lerna version premajor --no-git-tag-version --no-push --preid canary.$(git rev-parse --short HEAD) --yes --exact | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git commit -am "chore: Publish" | |
- name: Publish to NPM registry with canary tag | |
run: npx lerna publish from-package --yes --dist-tag canary | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |