Skip to content

Explicitly use ES Modules to avoid ambiguity in an attempt to fix iss… #73

Explicitly use ES Modules to avoid ambiguity in an attempt to fix iss…

Explicitly use ES Modules to avoid ambiguity in an attempt to fix iss… #73

Workflow file for this run

name: Main
on:
push:
branches: ['main']
pull_request:
types: [opened, synchronize]
jobs:
build:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- name: 🥼 Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: 💿 Restore cached turbo artifacts
uses: actions/cache@v4
with:
path: '**/.turbo'
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: 💿 Restore cached node_modules
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }}
- name: 📦 Install dependencies
run: npm install
- name: 🛠️ Build
run: npm run ci
- name: 🚀 Publish packages
run: npx changeset publish
env:
REGISTRY_EMAIL: ${{ secrets.REGISTRY_EMAIL }}
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}