Skip to content

Add methods for setting component inner text and HTML content #9

Add methods for setting component inner text and HTML content

Add methods for setting component inner text and HTML content #9

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: npm
- name: Install latest NPM
run: npm i -g npm@latest
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
publish:
name: Publish
needs: build
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- name: Set version from release tag
run: npm version ${{ github.event.release.tag_name }} --git-tag-version=false
- name: Publish to NPM
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}