forked from ng-select/ng-select
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 921 Bytes
/
release.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
44
name: NPM Publish
on:
push:
tags:
- '*'
jobs:
publish:
name: publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Use Node.js v16
uses: actions/setup-node@17f8bd926464a1afa4c6a11669539e9c1ba77048 # tag=v3
with:
node-version: 16
cache: yarn
registry-url: https://registry.yarnpkg.com/
- name: Install Dependencies
run: |
yarn --immutable
- name: Build all packages
run: yarn build
- name: Publish
run: |
yarn config set npmAuthToken ${NODE_AUTH_TOKEN}
yarn config set npmPublishRegistry "https://registry.yarnpkg.com"
for d in dist/*; do
pushd $d
yarn publish
popd
done
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}