Merge pull request #310 from storybookjs/fix/export-stories-specifiers #287
This file contains hidden or 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: Check | |
on: | |
push: | |
branches: | |
- main | |
- next | |
pull_request: | |
defaults: | |
run: | |
shell: bash | |
env: | |
CI: true | |
COREPACK_INTEGRITY_KEYS: 0 | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Svelte Check | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
steps: | |
# https://github.com/actions/checkout | |
- uses: actions/checkout@v4 | |
- name: Enable corepack (for pnpm) | |
# https://nodejs.org/api/corepack.html | |
run: corepack enable | |
- name: Setup Node.js | |
# https://github.com/actions/setup-node | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version-file: '.nvmrc' | |
- name: Install Node.js dependencies with pnpm | |
# https://pnpm.io/cli/install | |
run: > | |
pnpm install | |
--frozen-lockfile | |
- name: Build package | |
run: > | |
pnpm build | |
- name: Run svelte-check | |
run: > | |
pnpm check |