.github/workflows/publish-packages.yml #31
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
on: | |
workflow_dispatch: | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v14 | |
- uses: DeterminateSystems/magic-nix-cache-action@v8 | |
- run: nix develop --command setup-npm-config | |
- run: mkdir publish | |
- run: nix build .#components | |
- run: cp -r result/* publish | |
- name: publish @arc-web/components | |
run: nix develop --command npm publish publish/ --access public | |
- run: sudo rm -rf publish result | |
- run: mkdir publish | |
- run: nix build .#react | |
- run: cp -r result/* publish | |
- name: publish @arc-web/react | |
run: nix develop --command npm publish publish/ --access public | |
- run: sudo rm -rf publish result | |
- run: mkdir publish | |
- run: nix build .#material | |
- run: cp -r result/* publish | |
- name: publish @arc-web/material | |
run: nix develop --command npm publish publish/ --access public |