Add react-components and svg-components in webpack for publish (#201) #135
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: Node.js Publish UI Packages | |
on: | |
push: | |
branches: [ 'develop-webpack' ] | |
paths: | |
- 'webpack/ui-components/**' | |
- 'webpack/react-components/**' | |
- 'webpack/svg-components/**' | |
- 'webpack/libraries/**' | |
- 'react/modules/core/**' | |
jobs: | |
setup-python-and-build-tools: | |
name: Set up Python and Build Tools | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update apt and install Python 3 and build tools | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y python3 python3-pip python3-setuptools build-essential | |
sudo apt-get install -y python3-distutils || sudo apt-get install -y python3-dev | |
publish-webpack-ui-components: | |
name: Publish Webpack UI Components | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies for Webpack UI Components | |
run: | | |
cd webpack/ui-components/ | |
rm -rf node_modules yarn.lock | |
yarn install --frozen-lockfile | |
npm publish --tag core-webpack-v0.1 | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} | |
publish-webpack-svg-components: | |
name: Publish Webpack SVG Components | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies for Webpack UI Components | |
run: | | |
cd webpack/svg-components/ | |
rm -rf node_modules yarn.lock | |
yarn install --frozen-lockfile | |
npm publish --tag core-webpack-v0.1 | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} | |
publish-webpack-react-components: | |
name: Publish Webpack React Components | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies for Webpack UI Components | |
run: | | |
cd webpack/react-components/ | |
rm -rf node_modules yarn.lock | |
yarn install --frozen-lockfile | |
npm publish --tag core-webpack-v0.1 | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} | |
publish-react-module-libraries: | |
name: Publish React Module Libraries | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies for React Libraries | |
run: | | |
cd webpack/libraries/ | |
rm -rf node_modules yarn.lock | |
yarn install --frozen-lockfile | |
npm publish --tag libraries-v0.1 | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} | |
publish-react-module-core: | |
name: Publish React Module Core | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies for React Core | |
run: | | |
cd react/modules/core/ | |
rm -rf node_modules yarn.lock | |
yarn install --frozen-lockfile | |
npm publish --tag core-module-v0.1 | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.npm_token }} |