From 1f9bd8bfe37744a3d166fa054ff4319a5fc0e221 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 10 Jul 2023 12:46:15 +0000 Subject: [PATCH] Enable NPM related CI --- .github/workflows/npm.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/npm.yaml b/.github/workflows/npm.yaml index bf0f0012..c90cd92d 100644 --- a/.github/workflows/npm.yaml +++ b/.github/workflows/npm.yaml @@ -1,8 +1,7 @@ name: NPM Actions -#on: -# pull_request: -# branches: [master] +on: + pull_request: # push: jobs: @@ -13,13 +12,12 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: - # Make sure the actual branch is checked out when running on pull requests - ref: ${{ github.head_ref }} - # This is important to fetch the changes to the previous commit - fetch-depth: 0 + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Prettify code uses: creyD/prettier_action@v4.3 with: dry: True only_changed: True + prettier_version: 2.8.8