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.

1name: Node.js CI
2on:
3  push:
4    branches: ["master"]
5  pull_request:
6    branches: ["master"]
7jobs:
8  build:
9    runs-on: ubuntu-latest
10    strategy:
11      matrix:
12        node-version: [14.x, 16.x, 18.x]
13    steps:
14      - uses: actions/checkout@v4
15      - name: Use Node.js ${{ matrix.node-version }}
16        uses: actions/setup-node@v4
17        with:
18          node-version: 20
19      - name: Install PNPM
20        uses: pnpm/action-setup@v4
21        with:
22          version: 8
23          run_install: false
24      - name: Get pnpm store directory
25        shell: bash
26        run: |
27          echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
28      - uses: actions/cache@v4
29        name: Setup pnpm cache
30        with:
31          path: ${{ env.STORE_PATH }}
32          key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
33          restore-keys: |
34            ${{ runner.os }}-pnpm-store-
35      - name: Install dependencies
36        run: pnpm install
37      - name: Build
38        run: pnpm run build