Skip to content

Refactor lazy loading of template content in View.ts and update packa… #13

Refactor lazy loading of template content in View.ts and update packa…

Refactor lazy loading of template content in View.ts and update packa… #13

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
- name: Configure npm for publishing
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Install dependencies
run: npm install --legacy-peer-deps
- name: Run tests
run: npm test
- name: Build project
run: npm run build
- name: Publish to npm
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}