Skip to content

Merge pull request #397 from emilefokkemanavara/fix/rule-types #27

Merge pull request #397 from emilefokkemanavara/fix/rule-types

Merge pull request #397 from emilefokkemanavara/fix/rule-types #27

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy Package
on:
push:
branches: [ master, v6, v8 ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v4
with:
version: 9
- run: pnpm install
- run: pnpm install
working-directory: examples
- run: pnpm run build
- run: pnpm run lint
- run: pnpm run test
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18.x
- uses: pnpm/action-setup@v4
with:
version: 9
- run: pnpm install
- run: pnpm run build
# https://github.com/marketplace/actions/npm-publish
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}