Install #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The workflow to install the package | |
name: Install | |
# Controls when the workflow will run | |
on: | |
workflow_run: | |
workflows: [ "Production" ] | |
types: | |
- completed | |
jobs: | |
install: | |
# The matrix of OS and Node.js versions | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
node: [ '18', '20', 'current' ] | |
# The type of runner that the job will run on | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: "Use specified Node.js version" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: "Print version" | |
run: node -v && npm -v | |
- name: "Init default package manager config" | |
run: npm init -y | |
- name: "Install the package" | |
run: npm install @sapkotamadan/nrb-forex | |
- name: "List installed packages" | |
run: npm list --depth=0 |