Skip to content

Commit

Permalink
(github actions) Update dist/index.js on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
axel-op committed Feb 17, 2025
1 parent c014fe4 commit e9e364e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: Compile and push dist file

on:
push:
branches: [master]
on: [push, pull_request]

jobs:
compile-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- if: github.event_name != 'pull_request'
uses: actions/checkout@v4
- if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-node@v4
with:
node-version: 20
Expand Down

0 comments on commit e9e364e

Please sign in to comment.