fix typing issue #26
Workflow file for this run
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 Package to NPM | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
folder: | |
- "src/Bones.UI" | |
steps: | |
# Checking out repository | |
- uses: actions/checkout@v3 | |
# Setting .npmrc file up to publish to npm | |
- name: Setting things up 🔧 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16.x" | |
registry-url: "https://registry.npmjs.org" | |
# User or organization | |
scope: "@dative-gpi" | |
# Publishing with tag name as version | |
- name: Publishing to npm 🚀 | |
run: | | |
cd ${{ matrix.folder}} | |
yarn | |
yarn version --new-version ${{ github.ref_name }} --no-git-tag-version | |
yarn publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |