Skip to content

build(deps): bump @adobe/css-tools from 4.3.1 to 4.3.2 #10

build(deps): bump @adobe/css-tools from 4.3.1 to 4.3.2

build(deps): bump @adobe/css-tools from 4.3.1 to 4.3.2 #10

Workflow file for this run

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 }}