Updated workflow files #11
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 dev version | ||
on: | ||
workflow_run: | ||
workflows: ["Publish dev version"] | ||
types: | ||
- manual | ||
jobs: | ||
publish-dev-version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🤘 checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3.0.0 | ||
with: | ||
node-version: 18.x | ||
cache: 'npm' | ||
- name: Install Dependencies | ||
run: npm ci --ignore-scripts | ||
- name: 🛠️ Build | ||
run: npm run build | ||
- name: 🔐 Authenticate with NPM | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTOMATION_TOKEN_CHRIS }}" > ~/.npmrc | ||
- name: Publish packages to NPM with dev tag | ||
run: | | ||
for dir in packages/*; do | ||
if [ -d "$dir" ]; then | ||
echo "Publishing $dir package" | ||
cd "$dir" | ||
npm publish --tag dev | ||
cd .. | ||
fi | ||
done | ||