Publish Icons to NPM #1
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: Publish Icons to NPM | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Publish to NPM | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.HYVOR_ORG_NPM_TOKEN }} | |
working-directory: ./icons | |
run: | | |
npm ci | |
npm run package | |
npm publish |