Updates to @wesp-up/express: #75
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: 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 }} |