projenrc/common.ts (23 lines of code) (raw):
import { github } from 'projen';
export const ACTIONS_CHECKOUT: github.workflows.JobStep = {
name: 'Checkout',
uses: 'actions/checkout@v4',
with: {
ref: '${{ github.sha }}',
repository: '${{ github.repository }}',
},
};
export function ACTIONS_SETUP_NODE(nodeVersion?: string): github.workflows.JobStep {
return {
name: 'Setup Node.js',
uses: 'actions/setup-node@v4',
with: {
'cache': 'yarn',
'node-version': nodeVersion,
},
};
}
export const YARN_INSTALL: github.workflows.JobStep = {
name: 'Install dependencies',
run: 'yarn install --frozen-lockfile',
};