create-npm-package #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |