Skip to content

Adds NPM release pipeline #1

Adds NPM release pipeline

Adds NPM release pipeline #1

Workflow file for this run

name: NPM Package
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20]
name: Node ${{ matrix.node }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
publish:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build --workspace=@fileforge/client
- name: Publish package
run: npm publish
working-directory: packages/typescript