Skip to content

Create dependabot.yml #23

Create dependabot.yml

Create dependabot.yml #23

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Add & Commit

Check failure on line 34 in .github/workflows/npm-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/npm-publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 34
# You may pin to the exact commit or the version.
# uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5
uses: EndBug/[email protected]
with:
# Arguments for the git add command
add: # optional, default is .
# The name of the user that will be displayed as the author of the commit
author_name: # optional
# The email of the user that will be displayed as the author of the commit
author_email: # optional
# Additional arguments for the git commit command
commit: # optional
# The name of the custom committer you want to use
committer_name: # optional
# The email of the custom committer you want to use
committer_email: # optional
# The directory where your repository is located. You should use actions/checkout first to set it up
cwd: # optional, default is .
# How the action should fill missing author name or email.
default_author: # optional, default is github_actor
# Arguments for the git fetch command (if 'false', the action won't fetch the repo)
fetch: # optional, default is --tags --force
# The message for the commit
message: # optional
# The name of the branch to create.
new_branch: # optional
# The way the action should handle pathspec errors from the add and remove commands.
pathspec_error_handling: # optional, default is ignore
# Arguments for the git pull command. By default, the action does not pull.
pull: # optional
# Whether to push the commit and, if any, its tags to the repo. It can also be used to set the git push arguments (more info in the README)
push: # optional, default is true
# Arguments for the git rm command
remove: # optional
# Arguments for the git tag command (the tag name always needs to be the first word not preceded by a hyphen)
tag: # optional
# Arguments for the git push --tags command (any additional argument will be added after --tags)
tag_push: # optional
# The token used to make requests to the GitHub API. It's NOT used to make commits and should not be changed.
github_token: # optional, default is ${{ github.token }}
- name: Setup Java JDK
uses: actions/[email protected]
with:
# The Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file
java-version: # optional
# The path to the `.java-version` file. See examples of supported syntax in README file
java-version-file: # optional
# Java distribution. See the list of supported distributions in README file
distribution:
# The package type (jdk, jre, jdk+fx, jre+fx)
java-package: # optional, default is jdk
# The architecture of the package (defaults to the action runner's architecture)
architecture: # optional
# Path to where the compressed JDK is located
jdkFile: # optional
# Set this option if you want the action to check for the latest available version that satisfies the version spec
check-latest: # optional
# ID of the distributionManagement repository in the pom.xml file. Default is `github`
server-id: # optional, default is github
# Environment variable name for the username for authentication to the Apache Maven repository. Default is $GITHUB_ACTOR
server-username: # optional, default is GITHUB_ACTOR
# Environment variable name for password or token for authentication to the Apache Maven repository. Default is $GITHUB_TOKEN
server-password: # optional, default is GITHUB_TOKEN
# Path to where the settings.xml file will be written. Default is ~/.m2.
settings-path: # optional
# Overwrite the settings.xml file if it exists. Default is "true".
overwrite-settings: # optional, default is true
# GPG private key to import. Default is empty string.
gpg-private-key: # optional
# Environment variable name for the GPG private key passphrase. Default is $GPG_PASSPHRASE.
gpg-passphrase: # optional
# Name of the build platform to cache dependencies. It can be "maven", "gradle" or "sbt".
cache: # optional
# The path to a dependency file: pom.xml, build.gradle, build.sbt, etc. This option can be used with the `cache` option. If this option is omitted, the action searches for the dependency file in the entire repository. This option supports wildcards and a list of file names for caching multiple dependencies.
cache-dependency-path: # optional
# Workaround to pass job status to post job step. This variable is not intended for manual setting
job-status: # optional, default is ${{ job.status }}
# The token used to authenticate when fetching version manifests hosted on github.com, such as for the Microsoft Build of OpenJDK. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.
token: # optional, default is ${{ github.server_url == 'https://github.com' && github.token || '' }}
# Name of Maven Toolchain ID if the default name of "${distribution}_${java-version}" is not wanted. See examples of supported syntax in Advanced Usage file
mvn-toolchain-id: # optional
# Name of Maven Toolchain Vendor if the default name of "${distribution}" is not wanted. See examples of supported syntax in Advanced Usage file
mvn-toolchain-vendor: # optional