homebridge-nibe-s1156
Version:
Homebridge plugin for Nibe S1156
25 lines (24 loc) • 736 B
YAML
name: Publish package to GitHub Packages
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
# - run: npm config set _auth ${{ secrets.GITDEPLOY }} && npm config set registry $NPM_REGISTRY_URL && npm config set always-auth=true && npm config set email=email@email.com
- run: npm ci && npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITDEPLOY }}