Skip to content

feat: initial setup of button classes #86

feat: initial setup of button classes

feat: initial setup of button classes #86

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
env:
CI: true
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "npm"
- name: Install Dependencies
run: npm ci
- name: Lint Project
run: npm run lint
- name: Build Package
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build_artifacts
path: |
packages/**/dist/**
**/package.json
**/README.md
**/CHANGELOG.md
!**/node_modules/**
deploy-pages:
permissions:
contents: read
pages: write
id-token: write
runs-on: macos-latest
if: ${{ github.ref == 'refs/heads/main' }}
needs: build
steps:
- name: Download previous build artifacts
uses: actions/download-artifact@v4
with:
name: build_artifacts
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: packages/documentation/dist/
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
release:
permissions:
id-token: write # to publish with provenance
contents: write # to create release (changesets/action)
issues: write # to post issue comments (changesets/action)
pull-requests: write # to create pull request (changesets/action)
runs-on: macos-latest
if: ${{ github.ref == 'refs/heads/main' }}
concurrency: ${{ github.workflow }}-${{ github.ref }}
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "npm"
- name: Install Dependencies
run: npm ci
- name: Download previous build artifacts
uses: actions/download-artifact@v4
with:
name: build_artifacts
- name: Version and/or Publish Package
uses: changesets/action@v1
with:
publish: npm run release
version: npm run version
commit: "ci: release package"
title: "ci: release package"
env:
NPM_CONFIG_PROVENANCE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}