add the README file #3
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 Packages | |
on: | |
push: | |
branches: [master] | |
jobs: | |
publishPackages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup git user | |
run: | | |
git config --global user.email "noreply@github.com" | |
git config --global user.name "Github" | |
- name: Use Node.js 14.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14.x' | |
- name: Install dependencies and build packages | |
run: | | |
npm ci | |
npm run link:packages | |
npm run build:packages | |
- name: Bump package versions and Create release tags | |
run: | | |
yes | npm run version:packages | |
- name: Prepare .npmrc file to publish packages to NPM registry | |
uses: actions/setup-node@v2 | |
with: | |
registry-url: 'https://registry.npmjs.org' | |
- name: Publish to NPM | |
run: | | |
yes | npm run publish:packages:npm | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# Temporarily commented because I don't have yet generated a Github token, and also I need to rethink if that feature is even needed | |
# - name: Prepare .npmrc file to publish packages to GitHub registry | |
# uses: actions/setup-node@v2 | |
# with: | |
# registry-url: 'https://npm.pkg.github.com' | |
# - name: Publish to GitHub | |
# run: | | |
# yes | npm run publish:packages:github | |
# env: | |
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |