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 e666104 commit 54e1851
Showing 1 changed file with 3 additions and 36 deletions.
39 changes: 3 additions & 36 deletions .github/workflows/deploy-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,42 +35,9 @@ jobs:
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

- name: Install dependencies
run: npm install

# Execute the update of the browser instance of npm
- name: Update browser list
Expand Down

0 comments on commit 54e1851

Please sign in to comment.