v0.4.0 #17
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 | |
on: | |
release: | |
types: | |
- created | |
workflow_dispatch: | |
jobs: | |
test: | |
name: "Test" | |
uses: ./.github/workflows/test.yml | |
publish: | |
name: "Publish Packages" | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org/ | |
- name: Publish packages | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} | |
run: | | |
cd packages | |
echo "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" > .npmrc | |
for package in */; do | |
cd "$package" | |
npm publish || true | |
sleep 10 | |
cd .. | |
done |