Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new PR pipeline for contribution PRs #196

Merged
merged 1 commit into from
Feb 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# This yml is used for PRs, pre-release, and release build.
# We use the github.event_name to determine what started the workflow to determine which
# situation we are in.

name: PR

permissions:
deployments: write

on:
pull_request:
branches:
- main
- 'release/*'
check_run:
types: [rerequested, requested_action]
# push:
# branches:
# - main
# - 'release/*'
workflow_dispatch:

env:
NODE_VERSION: 18.15.0
NPM_VERSION: 9.5.0

jobs:
build:
name: PR
runs-on: ubuntu-latest
if: github.repository == 'microsoft/vscode-notebook-renderers'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node ${{env.NODE_VERSION}}
uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}

- name: Use Npm ${{env.NPM_VERSION}}
run: npm i -g npm@${{env.NPM_VERSION}}

- run: npm i -g @vscode/vsce

- run: npm ci
name: Install dependencies

- run: npm run lint
name: 'Lint'

- run: npm run lint-format
name: 'Code Format'

- name: Build VSIX
run: npm run package

- uses: actions/upload-artifact@v3
with:
name: 'ms-notebook-renderers.vsix'
path: 'ms-notebook-renderers.vsix'
Loading