Skip to content

refactor: Upgraded to h3 => v1.8.0 dependency in nitro-cors. #26

refactor: Upgraded to h3 => v1.8.0 dependency in nitro-cors.

refactor: Upgraded to h3 => v1.8.0 dependency in nitro-cors. #26

Workflow file for this run

name: nitro-cors/vitest
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
unit:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [18, 19]
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@master
# Setup .npmrc file to publish to GitHub Packages
- name: Setup node env πŸ— and .npmrc file to publish to GitHub Packages
uses: actions/setup-node@v2.1.2
with:
node-version: ${{ matrix.node }}
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file:
scope: '@observerly'
- name: Cache node_modules πŸ“¦
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install pnpm globally
run: npm install -g pnpm@8.5.1
- name: Install project dependencies πŸ‘¨πŸ»β€πŸ’»
run: pnpm install
- name: Build the package ready for publishing
run: pnpm run build
- name: Run vitest tests πŸ§ͺ
run: pnpm run test