[APP-4532] - Replace <SearchableSelect>
with svelte-select
#1933
Workflow file for this run
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: Continuous integration and deployment | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install 🔧 | |
uses: viamrobotics/js-config/.github/actions/setup@main | |
- name: Build 🏗️ | |
run: pnpm run build | |
- name: Lint and type check 💅 | |
run: pnpm run check | |
- name: Run tests | |
run: pnpm run test | |
- name: Upload npm @viamrobotics/prime artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: npm-legacy-dist | |
path: packages/legacy/dist | |
- name: Upload npm @viamrobotics/prime-core artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: npm-core-dist | |
path: packages/core/dist | |
- name: Upload npm @viamrobotics/prime-blocks artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: npm-blocks-dist | |
path: packages/blocks/dist | |
- name: Upload npm @viamrobotics/prime-editor artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: npm-editor-dist | |
path: packages/editor/dist | |
- name: Upload GitHub Pages artifacts | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: packages/storybook/prime | |
deploy-npm: | |
if: ${{ github.repository == 'viamrobotics/prime' && github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install 🔧 | |
uses: viamrobotics/js-config/.github/actions/setup@main | |
with: | |
registry-url: https://registry.npmjs.org | |
- name: Download @viamrobotics/prime npm artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: npm-legacy-dist | |
path: packages/legacy/dist | |
- name: Download @viamrobotics/prime-core npm artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: npm-core-dist | |
path: packages/core/dist | |
- name: Download @viamrobotics/prime-blocks npm artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: npm-blocks-dist | |
path: packages/blocks/dist | |
- name: Download @viamrobotics/prime-editor npm artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: npm-editor-dist | |
path: packages/editor/dist | |
- name: Publish 🚀 | |
run: pnpm publish -r --ignore-scripts | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
deploy-pages: | |
if: ${{ github.repository == 'viamrobotics/prime' && github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |