ci: add npm token #70
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
| on: push | |
| name: Continuous Integration | |
| jobs: | |
| test: | |
| name: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "lts/*" | |
| - uses: actions/cache@v4 | |
| id: yarn-unplugged-cache | |
| with: | |
| path: | | |
| '.yarn/unplugged/' | |
| '.yarn/build-state.yml' | |
| '.yarn/install-state.gz' | |
| key: ${{ runner.os }}-yarn-v1-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn-v1- | |
| - name: Install unplugged dependencies and check immutable | |
| run: | | |
| yarn install --immutable | |
| shell: bash | |
| - name: Check Biome | |
| run: | | |
| yarn check | |
| shell: bash | |
| - name: Build | |
| run: | | |
| yarn build | |
| shell: bash | |
| - name: Typecheck | |
| run: | | |
| yarn typecheck | |
| shell: bash | |
| - name: Test | |
| run: | | |
| yarn test | |
| shell: bash | |
| env: | |
| CI: true |