34 lines
642 B
YAML
34 lines
642 B
YAML
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: linux
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "24.15.0"
|
|
|
|
- name: Cache npm
|
|
uses: actions/cache@v4
|
|
with:
|
|
key: npm-${{ hashFiles('package-lock.json') }}
|
|
path: |
|
|
~/.npm/
|
|
|
|
- name: Install dependencies
|
|
run: npm clean-install
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Publish
|
|
run: npm publish
|
|
env:
|
|
INFENDRO__TOKEN: ${{ secrets.token }}
|