Skip to content

Commit

Permalink
build: add github action to update esbuild versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mattem authored and alexeagle committed Aug 30, 2021
1 parent a3754e3 commit 9b454e3
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/update-esbuild-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Update esbuild versions

on:
schedule:
# run at 01:30 UTC daily
- cron: '30 1 * * *'

jobs:
updateNodejsVersions:
runs-on: ubuntu-latest

# Skip this on forks
if: github.repository == 'bazelbuild/rules_nodejs'

steps:
- name: Git Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: '14.x'

- name: Run yarn update-esbuild-versions
run: yarn run update-esbuild-versions

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PAT }}
commit-message: Update esbuild versions
title: Update esbuild versions
body: |
- Updated esbuild versions using `yarn run update-esbuild-versions`
Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
branch: update-esbuild-versions

0 comments on commit 9b454e3

Please sign in to comment.