forked from growingio/gio-design
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 885 Bytes
/
package.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
name: Publishing Packages
on:
release:
types:
- published
jobs:
publish_npm:
name: Publishing packages to the npm registry
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: '1'
- name: Setup Node.js
uses: actions/setup-node@v2.1.2
with:
node-version: 12.x
registry-url: 'https://registry.npmjs.org'
- name: Restore packages from cache
uses: actions/cache@v2
with:
path: |
packages/components/dist
packages/components/es
packages/icons/dist
packages/icons/es
packages/tokens/dist
key: packages-${{ github.sha }}
- name: Publish from package
run: yarn run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}