Skip to content

Instantly share code, notes, and snippets.

@barisbll
Created July 19, 2023 10:06
Show Gist options
  • Save barisbll/29cff2c851ebf44e0704ebbced72b45b to your computer and use it in GitHub Desktop.
Save barisbll/29cff2c851ebf44e0704ebbced72b45b to your computer and use it in GitHub Desktop.
dummy-lib main workflow file
name: 'CI'
on:
pull_request:
branches:
- '**'
- '!main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
with:
version: 6.0.2
- run: pnpm i
install:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 6.0.2
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: pnpm i
# add your test, lint steps here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment