Skip to content

Commit

Permalink
Update deploy-snapshots.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
slubwama authored Jan 16, 2024
1 parent 7cbd2e9 commit e666104
Showing 1 changed file with 41 additions and 4 deletions.
45 changes: 41 additions & 4 deletions .github/workflows/deploy-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,51 @@ jobs:
server-username: secret_BINTRAY_USERNAME
server-password: secret_BINTRAY_PASSWORD

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}


In GitHub Actions, you can use the npx command just like you would in any other environment. npx is a package runner tool that comes with npm (Node Package Manager), and it allows you to execute binaries from npm packages.

Here's an example of how you might use npx in a GitHub Actions workflow:

yaml
Copy code
name: Node.js CI

on:
push:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: |
npm install
# Execute the update of the browser instance of npm
- name: Update browser list
run: npx update-browserslist-db@latest
env:
secret_BINTRAY_USERNAME: ${{ secrets.BINTRAY_USERNAME }}
secret_BINTRAY_PASSWORD: ${{ secrets.BINTRAY_PASSWORD }}

# Execute the Maven deploy command to compile, package, test, verify, and publish to SNAPSHOT repository
- name: Maven Deploy
run: mvn -X -B deploy --file pom.xml
env:
Expand Down

0 comments on commit e666104

Please sign in to comment.