-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 957 Bytes
/
install.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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