Skip to content

create-npm-package #224

create-npm-package

create-npm-package #224

Workflow file for this run

name: Release components package
on:
repository_dispatch:
types: [create-npm-package]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Reconfigure git to use HTTP authentication
run: git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- name: Install Node.js
uses: actions/setup-node@v3
with:
version: 20.5.1
cache: npm
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build
- name: Publish 🚀
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}