fix workflows folder name typo #1
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 to NPM | |
on: | |
push: | |
tags: | |
- 'v*' # This will run the workflow when you push a tag with a version format, like v1.0.0 | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Publish to NPM | |
run: | | |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc | |
if grep -qE "_authToken=.{1,}" .npmrc; then | |
npm publish | |
else | |
echo "Failed to create .npmrc file" && exit 1 | |
fi | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }} |