feat: specify allowed node versions #1
Workflow file for this run
This file contains 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: Continuous Integration | |
# on: | |
# pull_request: | |
# push: | |
# # need a personal access token (PAT) instead of GITHUB_TOKEN | |
# # branches: | |
# # - main | |
# # - staging | |
# # - develop | |
# jobs: | |
# prettier: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v3 | |
# with: | |
# token: ${{ secrets.GITHUB_TOKEN }} # Use GitHub token for authentication | |
# ref: ${{ github.head_ref }} | |
# - name: Use Node.js | |
# uses: actions/setup-node@v2 | |
# with: | |
# node-version: '18' | |
# - name: Install Dependencies | |
# run: yarn install --frozen-lockfile | |
# - name: Prettify code | |
# uses: creyD/[email protected] | |
# with: | |
# # This part is also where you can pass other options, for example: | |
# prettier_options: --write . | |
# # Use GitHub token for authentication | |
# github_token: ${{ secrets.GITHUB_TOKEN }} |