Skip to content

Commit

Permalink
Merge pull request #614 from micronutrientsupport/stever-bing2
Browse files Browse the repository at this point in the history
fix: staging deployments working again
  • Loading branch information
Fuhji authored Oct 13, 2021
2 parents 1464a21 + aa80974 commit 873efc7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bundle.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Analyse Bundle
on: pull_request_target
on: pull_request
jobs:
build-head:
name: "Build Current Branch"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/compodoc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Compodoc
on: pull_request_target
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -16,7 +16,7 @@ jobs:
npx compodoc -p ./tsconfig.json
- name: Deploy docs to netlify
id: deploy-netlify
if: github.event_name == 'pull_request_target'
if: github.event_name == 'pull_request'
uses: netlify/actions/cli@master
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
Expand All @@ -27,7 +27,7 @@ jobs:

- name: Compodoc Preview URL
uses: micronutrientsupport/comment-on-pr@master
if: github.event_name == 'pull_request_target'
if: github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OUTPUT: "The compodoc for this PR is being automatically deployed to Netlify.\n\n🔍 Deploy log: ${{ steps.deploy-netlify.outputs.NETLIFY_LOGS_URL }}\n📖 Compodoc: ${{ steps.deploy-netlify.outputs.NETLIFY_URL }}"
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Deploy Staging
on:
pull_request:
branches:
- develop
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,10 +17,12 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Node ${{ matrix.node-version }}
uses: actions/setup-node@v2.4.1
with:
node-version: ${{ matrix.node-version }}

- name: npm install and npm run build
run: |
npm i
Expand Down

0 comments on commit 873efc7

Please sign in to comment.