Install #9
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: [ "Publish" ] | |
types: | |
- completed | |
jobs: | |
install: | |
# Run on multiple operating systems and Node.js versions | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, windows-latest, macos-latest ] | |
node-version: [18, 20, 22] | |
fail-fast: false | |
steps: | |
# Checkout the repository | |
- uses: actions/checkout@v4 | |
# Set up Node.js with the specified version | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Generate package.json file | |
run: cd html && npm init -y | |
- name: Install Nepali Date Converter | |
run: cd html && npm install @remotemerge/nepali-date-converter | |
- name: List installed packages | |
run: cd html && npm list --depth=0 |