The world’s leading AI-powered developer platform

Banner

Bookmarks

4 items

Articles

Viewing GitHub Repositories in Visual Studio Code: A Quick Guide

Discover how to easily open GitHub repositories in Visual Studio Code directly from your browser using GitHub.dev. This guide explains how to modify the GitHub URL by changing '.com' to '.dev' for a seamless code editing experience. Learn about the key features of GitHub.dev, including code navigation, editing, source control, and extensions, and how it enhances your development workflow without the need for a local environment.

name: Node.js CI
on:
  push:
    branches: ["master"]
  pull_request:
    branches: ["master"]
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [14.x, 16.x, 18.x]
    steps:
      - uses: actions/checkout@v4
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v4
        with:
          node-version: 20
      - name: Install PNPM
        uses: pnpm/action-setup@v4
        with:
          version: 8
          run_install: false
      - name: Get pnpm store directory
        shell: bash
        run: |
          echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
      - uses: actions/cache@v4
        name: Setup pnpm cache
        with:
          path: ${{ env.STORE_PATH }}
          key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
          restore-keys: |
            ${{ runner.os }}-pnpm-store-
      - name: Install dependencies
        run: pnpm install
      - name: Build
        run: pnpm run build