Skip to content

easyPEP/github-action-new-relic-upload-sourcemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-action-new-relic-upload-sourcemap

GH Action to upload sourcemaps to New Relic

Example

on:
  push:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - run: |
        echo "REMOTE_URL=$(git remote get-url origin)" >> $GITHUB_ENV
        echo "GIT_SLUG=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
    - uses: easyPEP/github-action-new-relic-upload-sourcemap@main
      with:
        api_key: ${{ secrets.NEW_RELIC_USER_API_KEY }}
        app_id: ${{ secrets.NEW_RELIC_APP_ID }}
        sourcemap_path: path/to/application.js.map
        javascript_url: https://example.com/assets/application.min.js
        release_id: ${{ env.GIT_SLUG }}
        release_name: prod-${{ env.GIT_SLUG }}
        github_repository_url: ${{ env.REMOTE_URL }}

Inputs

Name Required? Default Description
api_key Y N/A A valid user API key
app_id Y N/A A valid application id
sourcemap_path Y N/A Path to the sourcemap file
javascript_url Y N/A URL of the file on your server
release_id N Commit Hash Unique id for the release, e.g. git hash or semver, default git commit hash
release_name N Commit Hash Name for the release, e.g. v1.0, default git commit hash
github_repository_url Y N/A URL of the repository

License

MIT (c) 2022 easyPEP UG and contributors

About

GH Action to upload sourcemaps to New Relic

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors