-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.05 KB
/
publish-packages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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