-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (40 loc) · 1.16 KB
/
release-icons.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
33
34
35
36
37
38
39
40
41
42
43
on:
workflow_dispatch:
name: Release icons
concurrency:
group: 'release-icons'
cancel-in-progress: false
jobs:
release-icons:
name: Publish to npm and release on github
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- uses: pnpm/action-setup@v4
with:
version: 9.15.4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 22.x
check-latest: true
cache: pnpm
- name: Install all packages
run: pnpm i
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Generate icon source
run: pnpm generate-src
working-directory: ./packages/frosted-ui-icons
env:
FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }}
- name: Build icon package
run: pnpm build
working-directory: ./packages/frosted-ui-icons
- name: Publish to npm
run: pnpm publish --no-git-checks
working-directory: ./packages/frosted-ui-icons